Skip to content

Commit 3e520a8

Browse files
authored
Use --recursive to run nested test files (#304)
Closes #303
1 parent 85777d4 commit 3e520a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"lint": "esw *.js server config --color",
1818
"lint:watch": "yarn lint -- --watch",
1919
"precommit": "yarn lint && yarn test",
20-
"test": "cross-env NODE_ENV=test ./node_modules/.bin/mocha --ui bdd --reporter spec --colors --compilers js:babel-core/register ./server/**/*.test.js",
20+
"test": "cross-env NODE_ENV=test ./node_modules/.bin/mocha --ui bdd --reporter spec --colors --compilers js:babel-core/register server/tests --recursive",
2121
"test:watch": "yarn test -- --watch",
22-
"test:coverage": "cross-env NODE_ENV=test ./node_modules/.bin/istanbul cover _mocha -- --ui bdd --reporter spec --colors --compilers js:babel-core/register ./server/**/*.test.js",
22+
"test:coverage": "cross-env NODE_ENV=test ./node_modules/.bin/istanbul cover _mocha -- --ui bdd --reporter spec --colors --compilers js:babel-core/register server/tests --recursive",
2323
"test:check-coverage": "yarn test:coverage && istanbul check-coverage",
2424
"report-coverage": "coveralls < ./coverage/lcov.info"
2525
},

0 commit comments

Comments
 (0)