hapi
hapi copied to clipboard
How do I separate between integration testing and unit testing using Hapi in Node.js?
How do I separate between integration testing and unit testing using Hapi in Node.js?
I am trying to reduce the testing time in our automations for every time we update a unit within our API.
I was wondering can I just create two new folders test/unit and test/int to separate the scripts and what would the update to the package.json require?
I have the following in the package.json which runs the .labrc.js package.json
"test": "npm run version-stamp && lab --bail -t 80 -r html -o coverage.html -r console -o stdout -r junit -o TestResult.xml -r lcov -o coverage.dat",
"simple-test": "npm run version-stamp && lab",
"test-int": "not sure what to put here",
labrc.js
module.exports = {
verbose: true,
timeout: 7500,
lint: true,
paths: [
"test/init/aws",
"test/unit/plugins",
"test/unit/utils",
"test/unit/routes"
],