Skip to content

Commit

Permalink
chore: update unit coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
goosewobbler committed Dec 12, 2023
1 parent 464359a commit 7faee53
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { configDefaults, defineConfig } from 'vitest/config';

const symlinkedCJSFiles = ['src/cjs/constants.ts', 'src/cjs/main.ts', 'src/cjs/preload.ts', 'src/cjs/types.ts'];

export default defineConfig({
test: {
include: ['test/**/*.spec.ts'],
Expand All @@ -8,13 +10,12 @@ export default defineConfig({
coverage: {
enabled: true,
include: ['src/**/*'],
// exclude symlinked CJS files from coverage
exclude: ['src/cjs/constants.ts', 'src/cjs/main.ts', 'src/cjs/preload.ts', 'src/cjs/types.ts'],
exclude: [...symlinkedCJSFiles, 'src/types.ts'],
thresholds: {
lines: 75,
functions: 75,
branches: 75,
statements: 75,
lines: 70,
functions: 70,
branches: 70,
statements: 70,
},
},
},
Expand Down

0 comments on commit 7faee53

Please sign in to comment.