"out of the box", npm test fails
See original GitHub issuerepro steps:
-
clone pixi repo
-
checkout dev branch
-
npm install
to get all deps -
run
npm test
ornpm run test:debug
-
notice either one fails:
pixi.js@4.5.1 test /Users/michaelreinstein/wwwroot/pixi.js
floss --path test/index.js
[floss] caught outer exception: Cannot find module '../dist/pixi' Error: Cannot find module '../dist/pixi'
at Module._resolveFilename (module.js:470:15)
at Function.Module._resolveFilename (/Users/michaelreinstein/wwwroot/pixi.js/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/michaelreinstein/wwwroot/pixi.js/test/index.js:4:1)
at Object.<anonymous> (/Users/michaelreinstein/wwwroot/pixi.js/test/index.js:21:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
appears there is some kind of pre-build/prep step that is not being run?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
"npm start" app works, "npm test" fails test with syntax error on ...
I am reporting a create-react-app bug. I expect, if i do nothing to cause a problem, that running npm test on an almost...
Read more >Mocha TS tests fail with `npm test` but not if run directly
1 Answer 1 ... The problem is that no matter what, but npm run <script> in general and npm test in particular will...
Read more >Common errors | npm Docs
It's most likely a temporary npm registry glitch. Check npm server status and try again later. If the error persists, perhaps the published...
Read more >How To Test a React App with Jest and React Testing Library
Press `a` to run all tests, or run Jest with `--watchAll`. Watch Usage › Press a to run all tests. › Press f...
Read more >How to find the root cause of a failing test if Jest doesn't tell ...
Luckily, someone pointed out a way around this while this issue is still present. Even though Jest aims to work out of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed with #3984
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.