Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jest-haste-map causing issue with running jest test file #20159

Closed
clfristoe opened this issue Jul 11, 2018 · 1 comment
Closed

jest-haste-map causing issue with running jest test file #20159

clfristoe opened this issue Jul 11, 2018 · 1 comment
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@clfristoe
Copy link

clfristoe commented Jul 11, 2018

I just upgraded to RN 0.56.0 and am using jest version: 22.4.3 (updating the jest version doesn't help)
When I try to run my test suite, I get the following error in the terminal:

jest-haste-map: watch error: Error: ENOENT: no such file or directory, open '/Users/mobilepractice/builds/0bcf5ed0/0/cx-mobile/posting-plus/PostingPlus/node_modules/jest-haste-map/build/worker.js' at Error (native) at Object.fs.openSync (fs.js:640:18) at Object.fs.readFileSync (fs.js:508:33) at Module._extensions..js (module.js:578:20) at Object.require.extensions.(anonymous function) [as .js] (/Users/mobilepractice/builds/0bcf5ed0/0/cx-mobile/posting-plus/PostingPlus/node_modules/babel-register/lib/node.js:152:7) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19)

and this error as well:
/Users/mobilepractice/builds/0bcf5ed0/0/cx-mobile/posting-plus/PostingPlus/node_modules/react-native/jest/hasteImpl.js:50 ) /*: string | void */ { ^ SyntaxError: Unexpected token ) at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (/Users/mobilepractice/builds/0bcf5ed0/0/cx-mobile/posting-plus/PostingPlus/node_modules/jest-runtime/node_modules/jest-haste-map/build/worker.js:16:19) at next (native)

I can see the worker.js file in my node_modules folder, which is why the ENOENT error is confusing.

@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library.

If you'd like to start a discussion, check out https://discuss.reactjs.org or follow the discussion template.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. 📋No Template labels Jul 11, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Jul 18, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants