Skip to content

Commit 5ea1492

Browse files
committed
test: add code coverage
1 parent 3ed796d commit 5ea1492

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

vitest.config.mjs

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,24 @@ export default defineConfig({
2929
'**/packages/@lwc/perf-benchmarks-components/**',
3030
'**/packages/@lwc/perf-benchmarks/**',
3131
'**/playground/**',
32-
// These are not production-ready yet
33-
'**/packages/@lwc/ssr-compiler/**',
34-
'**/packages/@lwc/ssr-runtime/**',
3532
// This just re-exports other packages
3633
'**/packages/lwc/**',
3734
],
3835
thresholds: {
39-
branches: 95,
40-
functions: 95,
41-
lines: 95,
42-
statements: 95,
36+
// SSR compiler/runtime is relatively newer, so has lower thresholds for now
37+
'**/packages/@lwc/ssr-*/**': {
38+
branches: 90,
39+
functions: 60,
40+
lines: 85,
41+
statements: 85,
42+
},
43+
44+
'!**/packages/@lwc/ssr-*/**': {
45+
branches: 95,
46+
functions: 95,
47+
lines: 95,
48+
statements: 95,
49+
},
4350
},
4451
reporter: [
4552
'clover',

0 commit comments

Comments
 (0)