Skip to content

Commit 0831957

Browse files
committed
test(coverage): define reporters and update the base unit test script
1 parent 5c1961f commit 0831957

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"lint:publish": "publint --strict",
3131
"lint:sensitive": "ban",
3232
"test:unit": "run-s 'test:unit:base -- --coverage'",
33-
"test:unit:base": "DEBUG=any vitest run",
33+
"test:unit:base": "NODE_ENV=test DEBUG=any vitest run src/",
3434
"test:integration": "run-s 'test:integration:base -- --profile noWip'",
3535
"pretest:integration:base": "run-s build",
3636
"test:integration:base": "NODE_OPTIONS=--enable-source-maps DEBUG=any cucumber-js test/integration",

vitest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export default defineConfig({
77

88
coverage: {
99
provider: 'v8',
10+
reporter: ['lcov', 'text-summary', 'html'],
1011
include: ['src/**'],
1112
exclude: ['src/**/index.js']
1213
}

0 commit comments

Comments
 (0)