Open tdoran opened 6 years ago
Update on the above - specifying your test
script like this is neater, and will work the same, provided you are consistent with your file naming (it will run all files in the /test folder that end in .test.js
):
"test": "nyc tape ./test/*.test.js",
Good to know! 👍
Super helpful. I'm going to use it now! @tdoran
If you want to have two suites of tests running with independent commands in the terminal (e.g.
npm run test-router
andnpm run test-logic
), while also having them run together withnpm test
, you can use the structure below - note this also allows Travis to run both test suites whenever it's doing its CI.