Skip to content

Commit 1da304a

Browse files
committed
Allows test config to report coverage
1 parent 5e1f0a4 commit 1da304a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
"build:node": "DEPLOY_ENV='node' npm run build",
1717
"build:static": "DEPLOY_ENV='static' npm run build",
1818
"test": "vitest",
19-
"test:ui": "vitest --ui",
2019
"test:coverage": "vitest --coverage",
2120
"test:api": "vitest run --config tests/vitest.api.config.ts",
22-
"test:e2e": "playwright test",
23-
"test:e2e:ui": "playwright test --ui"
21+
"test:e2e": "playwright test"
2422
},
2523
"dependencies": {},
2624
"devDependencies": {

vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default defineConfig({
2020
'src/hooks.server.ts',
2121
'src/service-worker.ts'
2222
],
23+
reporter: ['text', 'lcov', 'html'],
2324
thresholds: {
2425
global: {
2526
statements: 85,

0 commit comments

Comments
 (0)