Skip to content

Commit 88be0ce

Browse files
kohei-takatafacebook-github-bot
authored andcommitted
Fix eslint errors and warnings in preprocessor.js
Summary: Pull Request resolved: facebook#20632 Differential Revision: D9367291 Pulled By: hramos fbshipit-source-id: bdb823db132dcbb07ad02389a3246e5314de2b17
1 parent 123dac2 commit 88be0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jest/preprocessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const babelRegisterOnly = require('metro-babel-register');
2323
const createCacheKeyFunction = require('fbjs-scripts/jest/createCacheKeyFunction');
2424
const generate = require('@babel/generator').default;
2525

26-
const nodeFiles = RegExp(
26+
const nodeFiles = new RegExp(
2727
[
2828
'/local-cli/',
2929
'/metro(?:-[^/]*)?/', // metro, metro-core, metro-source-map, metro-etc

0 commit comments

Comments
 (0)