Skip to content

Commit 0974b32

Browse files
author
Ganesh K Bhat
committed
[COMMIT] Adding mocha testing config and bettering package.json script files.
1 parent 541c9b9 commit 0974b32

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

mocha.test.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
spec: [
3+
'./test/test.*.js',
4+
'./test/*.test.js',
5+
'./test/**/test.*.js',
6+
'./test/**/*.test.js'
7+
],
8+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"start": "node ./server.js",
15-
"test": "mocha"
15+
"test": "mocha --reporter spec --recursive --config ./mocha.test.config.js"
1616
},
1717
"main": "./main.js",
1818
"dependencies": {

0 commit comments

Comments
 (0)