Skip to content

Commit 741540b

Browse files
committed
Drop mocha and nyc
1 parent f761bd0 commit 741540b

File tree

1 file changed

+4
-26
lines changed

1 file changed

+4
-26
lines changed

package.json

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
],
1414
"scripts": {
1515
"pretest": "npm run format && npm run build",
16-
"test": "TEST_PORT=1234 TS_NODE_CACHE=0 mocha --exit",
17-
"covtest": "TEST_PORT=1234 TS_NODE_CACHE=0 nyc mocha --exit",
16+
"test": "vitest run",
17+
"covtest": "vitest run --coverage",
1818
"prettier": "prettier \"{lib,test}/**/*.ts\"",
1919
"format": "npm run prettier -- --write",
2020
"format:check": "npm run prettier -- -l",
@@ -48,12 +48,11 @@
4848
"@types/express": "4.17.21",
4949
"@types/finalhandler": "1.2.3",
5050
"@types/mocha": "10.0.6",
51+
"@vitest/coverage-v8": "^1.4.0",
5152
"express": "4.19.2",
5253
"finalhandler": "1.2.0",
5354
"husky": "9.0.11",
54-
"mocha": "10.4.0",
55-
"msw": "2.2.13",
56-
"nyc": "15.1.0",
55+
"msw": "2.2.11",
5756
"prettier": "3.2.5",
5857
"ts-node": "10.9.2",
5958
"typedoc": "^0.25.1",
@@ -68,26 +67,5 @@
6867
"pre-push": "npm run format:check && npm run build && npm run test"
6968
}
7069
},
71-
"nyc": {
72-
"require": [
73-
"ts-node/register"
74-
],
75-
"extension": [
76-
".ts"
77-
],
78-
"reporter": [
79-
"lcov",
80-
"text"
81-
],
82-
"sourceMap": true,
83-
"instrument": true
84-
},
85-
"mocha": {
86-
"require": "ts-node/register",
87-
"spec": [
88-
"test/**/*.spec.ts",
89-
"lib/**/tests/**/*.spec.ts"
90-
]
91-
},
9270
"license": "Apache-2.0"
9371
}

0 commit comments

Comments
 (0)