question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"out of the box", npm test fails

See original GitHub issue

repro steps:

  1. clone pixi repo

  2. checkout dev branch

  3. npm install to get all deps

  4. run npm test or npm run test:debug

  5. 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:closed
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bigtimebuddycommented, May 1, 2017

Fixed with #3984

0reactions
lock[bot]commented, Feb 24, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found