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

Unit tests not working #22

Closed
unimonkiez opened this issue Mar 28, 2017 · 0 comments
Closed

Unit tests not working #22

unimonkiez opened this issue Mar 28, 2017 · 0 comments
Labels
Milestone

Comments

@unimonkiez
Copy link
Owner

To run unit tests need to run in command line - npm run test.
Should output successful and failed unit tests, instead it always writes this -

~/dev/react-cordova-boilerplate master* 24s
❯ npm run test

> react-cordova-boilerplate@2.0.1-alpha.3 test /home/uv/dev/react-cordova-boilerplate
> node ./bin/test.js

28 03 2017 14:54:18.403:ERROR [preprocess]: Can not load "sourcemap", it is not registered!
  Perhaps you are missing some plugin?
(node:28777) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
28 03 2017 14:54:26.491:INFO [karma]: Karma v1.5.0 server started at http://0.0.0.0:9876/
28 03 2017 14:54:26.492:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
28 03 2017 14:54:26.493:ERROR [karma]: Found 1 load error
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-cordova-boilerplate@2.0.1-alpha.3 test: `node ./bin/test.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the react-cordova-boilerplate@2.0.1-alpha.3 test script 'node ./bin/test.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-cordova-boilerplate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./bin/test.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs react-cordova-boilerplate
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls react-cordova-boilerplate
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/uv/.npm/_logs/2017-03-28T11_54_26_636Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant