nwb
nwb copied to clipboard
Exclude node_modules in tests
This issue is a:
- Question / support request
How can i exclude node_modules when run yarn test? My component include 3-part modules and they have a test errors.
$ nwb test -s
START:
(node:12438) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
Compiled with 1 warning.
WARNING in ./node_modules/merge-graphql-schemas/dist/index.esm.js 3781:21-31
Critical dependency: the request of a dependency is an expression
@ ./src/index.js
@ ./tests/index-test.js
04 10 2018 12:37:56.442:INFO [karma]: Karma v2.0.5 server started at http://0.0.0.0:9876/
04 10 2018 12:37:56.444:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
04 10 2018 12:37:56.510:INFO [launcher]: Starting browser PhantomJS
04 10 2018 12:37:57.003:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket UBcqvOCTNtrtIO4MAAAA with id 51884748
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
{
"message": "SyntaxError: Unexpected token ','\nat webpack:///node_modules/merge-graphql-schemas/dist/index.esm.js:3764 <- tests/index-test.js:25101",
"str": "SyntaxError: Unexpected token ','\nat webpack:///node_modules/merge-graphql-schemas/dist/index.esm.js:3764 <- tests/index-test.js:25101"
}
Finished in 0.218 secs / 0 secs @ 12:37:57 GMT+0300 (MSK)
SUMMARY:
✔ 0 tests completed
Karma exit code was 1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
node -v v9.11.1 npm -v 6.3.0 nwb -v v0.23.0