Cannot find module 'coffee-react-transform' in npm test
Closed this issue · 2 comments
tominhuang commented
Scenario:
» npm test
ls@0.0.0 test /...
jest
Using Jest CLI v0.2.2
FAIL src/scripts/components/tests/App-test.ls
Error: ../preprocessor.js: Cannot find module 'coffee-react-transform'
1 test failed, 0 tests passed (1 total)
Run time: 0.318s
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
My fix:
in package.json, in devDependencies section, add
- "coffee-react-transform": "*"
run npm install again