Skip to content

Commit

Permalink
test(vitest): Exclude Astro and Astrobook related (#8)
Browse files Browse the repository at this point in the history
They don't need to be tested.
  • Loading branch information
5ouma authored Nov 8, 2024
1 parent bc4ab6e commit 2aecf4d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
/// <reference types="vitest" />

import { getViteConfig } from "astro/config";
import { coverageConfigDefaults } from "vitest/config";

export default getViteConfig({
test: {
reporters: ["verbose", ["junit", { suiteName: "Component Tests" }]],
outputFile: "junit.xml",
coverage: {
exclude: [
"astro.config.ts",
"src/pages/",
"src/layouts/",
"**/*.stories.ts",
...coverageConfigDefaults.exclude,
],
},
},
});

0 comments on commit 2aecf4d

Please sign in to comment.