Skip to content

Commit 7f73f45

Browse files
committed
test: change scripts in package.json to use jest
1 parent 7656677 commit 7f73f45

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@
117117
"prepublishOnly": "npm run build",
118118
"test-integration": "mocha test/integration",
119119
"test-unit": "jest test/unit/",
120-
"test": "nyc mocha test/unit/ test/integration/ && nyc report --reporter=html",
121-
"test-travis": "nyc mocha test/unit/ test/integration/ --grep @slow --invert && nyc report --reporter=html",
120+
"test": "npm run test-unit && npm run test-integration && nyc report --reporter=html",
121+
"test-travis": "npm run test-unit && nyc mocha test/integration/ --grep @slow --invert && nyc report --reporter=html",
122122
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov",
123123
"watch-doc": "nodemon --watch ./ --ext js,tmpl,json --ignore dist/ --ignore doc/ --ignore test/ --ignore examples/ --exec npm run doc",
124124
"watch": "npm run test-unit -- --watch",
@@ -141,5 +141,9 @@
141141
"eslint --fix",
142142
"git add"
143143
]
144+
},
145+
"jest": {
146+
"collectCoverage": true,
147+
"coverageDirectory": "./coverage/"
144148
}
145149
}

0 commit comments

Comments
 (0)