Error: Cannot find module 'core-js/shim' from 'index.js' #1014
Closed
Description
opened on May 17, 2016
Hi folks, I was trying to setup the jest for my project.
When I try to run npm test
I got the error message below,
[32] → npm test
> jest-demo@1.0.0 test /Users/tyler/Desktop/test/jest-demo
> jest
Using Jest CLI v12.0.2, jasmine2, babel-jest
FAIL src/Button/__tests__/Button-test.js
● Runtime Error
Error: Cannot find module 'core-js/shim' from 'index.js'
at Runtime._resolveNodeModule (/Users/tyler/Desktop/test/jest-demo/node_modules/jest-cli/src/Runtime/Runtime.js:451:11)
at Object.<anonymous> (/Users/tyler/Desktop/test/jest-demo/node_modules/babel-polyfill/lib/index.js:3:25)
npm ERR! Test failed. See above for more details.
Then I open my node_modules, and core-js/shim.js
does exist.
Could anybody take a glance at this runable example here. ?
Metadata
Assignees
Labels
No labels
Activity