Skip to content

Commit f22e45c

Browse files
committed
chore: include the workflow scripts in coverage
1 parent 1aa620c commit f22e45c

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

‎vitest.config.mts‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,18 @@ export default defineConfig({
4141

4242
provider: 'v8',
4343

44-
// Only `src` counts towards the coverage thresholds. The scripts under
45-
// `.github` are not part of the coverage report.
46-
include: ['src/**/*.ts'],
47-
exclude: ['src/**/*.test.ts'],
44+
include: ['src/**/*.ts', '.github/**/*.{js,mjs,mts,ts}'],
45+
exclude: ['**/*.test.*', '.github/scripts/tests/**'],
4846
reporter: ['text', 'html', 'json-summary'],
4947
reportsDirectory: 'coverage',
5048

5149
thresholds: {
5250
// Raises the thresholds in this file when coverage improves.
5351
autoUpdate: true,
54-
branches: 62.31,
55-
functions: 62.25,
56-
lines: 65.55,
57-
statements: 65.73,
52+
branches: 41.72,
53+
functions: 50.63,
54+
lines: 41.61,
55+
statements: 41.5,
5856
},
5957
},
6058
},

0 commit comments

Comments
 (0)