test: exclude drivers and scripts directories from test coverage (#562)

This commit is contained in:
Connor Pearson
2025-01-03 00:47:58 +01:00
committed by GitHub
parent 9e15ab9962
commit 7fd4933a9f

View File

@@ -1,4 +1,4 @@
import { defineConfig } from "vitest/config";
import { defineConfig, configDefaults } from "vitest/config";
export default defineConfig({
test: {
@@ -7,5 +7,12 @@ export default defineConfig({
typecheck: {
enabled: true,
},
coverage: {
exclude: [
...configDefaults.coverage.exclude,
"./drivers/**",
"./scripts/**",
],
},
},
});