Skip to content

Commit 100311d

Browse files
test: replace mocha and nyc with jest
- Save `jest` and prune devDependencies - Update `package.json` scripts and add script `test:ci` - Rename file `test/index.js` -> `test/index.spec.js` - Replace "mocha" with "jest" in `.eslintrc` "env" field
1 parent a81a975 commit 100311d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"env": {
33
"browser": true,
44
"commonjs": true,
5-
"mocha": true,
5+
"jest": true,
66
"node": true
77
},
88
"extends": "eslint:recommended",

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
"lint": "eslint --ignore-path .gitignore .",
99
"lint:fix": "npm run lint -- --fix",
1010
"release": "standard-version --no-verify",
11-
"test": "mocha",
12-
"test:coverage": "nyc npm test",
11+
"test": "jest",
12+
"test:ci": "npm run test:coverage -- --ci",
13+
"test:coverage": "npm test -- --coverage",
1314
"test:watch": "npm test -- --watch"
1415
},
1516
"repository": {
@@ -34,9 +35,8 @@
3435
"eslint": "^5.16.0",
3536
"eslint-plugin-prettier": "^3.1.0",
3637
"husky": "^2.4.1",
38+
"jest": "^24.8.0",
3739
"lint-staged": "^8.2.1",
38-
"mocha": "^6.1.4",
39-
"nyc": "^14.1.1",
4040
"prettier": "^1.18.2",
4141
"standard-version": "^6.0.1"
4242
},
File renamed without changes.

0 commit comments

Comments
 (0)