Skip to content

Commit ddf2614

Browse files
committed
test(unit): converted the remaining scaffolder unit tests to vitest
tests for the base scaffolder still need a bunch of rework, but this mostly matches what was there with mocha, so it will unblock the esm transition. mosre rework will be possible after a few of the breaking changes go out with the new major version closes #1276
1 parent fb1747d commit ddf2614

9 files changed

+229
-564
lines changed

.mocharc.json

-1
This file was deleted.

package-lock.json

-264
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
"lint:peer": "npm ls >/dev/null",
3333
"lint:publish": "publint",
3434
"test": "npm-run-all --print-label build --parallel lint:* --parallel test:*",
35-
"test:unit:base": "npm-run-all --print-label build --parallel test:unit:vitest test:unit:mocha",
36-
"test:unit:mocha": "mocha 'src/**/*-test.js'",
37-
"test:unit:vitest": "DEBUG=any vitest run",
35+
"test:unit:base": "DEBUG=any vitest run",
3836
"test:unit": "cross-env NODE_ENV=test c8 run-s test:unit:base",
3937
"test:integration:base": "NODE_OPTIONS=\"--loader=testdouble --enable-source-maps\" cucumber-js test/integration",
4038
"test:integration:wip": "run-s 'test:integration:base -- --profile wip'",
@@ -103,7 +101,6 @@
103101
"mdast-util-from-markdown": "1.3.1",
104102
"mdast-util-heading-range": "4.0.0",
105103
"mdast-zone": "5.1.1",
106-
"mocha": "10.2.0",
107104
"mock-fs": "5.2.0",
108105
"npm-run-all": "4.1.5",
109106
"publint": "0.1.16",

0 commit comments

Comments
 (0)