Skip to content

Commit

Permalink
Add code coverage (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing authored Feb 10, 2025
1 parent 90c1074 commit aa1a906
Show file tree
Hide file tree
Showing 4 changed files with 258 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage/
dist/
node_modules/
playwright-report/
Expand Down
249 changes: 249 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
},
"devDependencies": {
"@vitest/browser": "^3.0.0",
"@vitest/coverage-v8": "^3.0.0",
"esbuild": "^0.24.0",
"eslint": "^8.0.0",
"eslint-config-remcohaszing": "^10.0.0",
Expand Down
7 changes: 7 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ export default defineConfig({
browser: 'chromium'
}
]
},
coverage: {
enabled: true,
provider: 'v8',
include: ['src/**', 'fillers/**', 'index.js', 'yaml.worker.js'],
exclude: ['node_modules/**'],
excludeAfterRemap: true
}
}
})

0 comments on commit aa1a906

Please sign in to comment.