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

Cannot run tests from fresh install #12

Open
mdvorscak opened this issue Jan 9, 2018 · 0 comments
Open

Cannot run tests from fresh install #12

mdvorscak opened this issue Jan 9, 2018 · 0 comments

Comments

@mdvorscak
Copy link

Actual behavior

After cloning and running yarn install && npm run test you get the following error:

[email protected] test /home/mike/projects/appmetrics.js
./node_modules/mocha/bin/mocha

/home/mike/projects/appmetrics.js/test/test.js:4
const assert = chai.assert;
^

ReferenceError: chai is not defined
at Object. (/home/mike/projects/appmetrics.js/test/test.js:4:16)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at /home/mike/projects/appmetrics.js/node_modules/mocha/lib/mocha.js:222:27
at Array.forEach ()
at Mocha.loadFiles (/home/mike/projects/appmetrics.js/node_modules/mocha/lib/mocha.js:219:14)
at Mocha.run (/home/mike/projects/appmetrics.js/node_modules/mocha/lib/mocha.js:487:10)
at Object. (/home/mike/projects/appmetrics.js/node_modules/mocha/bin/_mocha:459:18)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

Expected behavior

I can easily run tests with yarn install && npm run test. Actually needing to set up a server for the project folder is cumbersome and limits the ability for CI/CD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant