Skip to content

Commit

Permalink
Limit tests and coverage to Sveltekit directories
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Apr 16, 2024
1 parent ac00ad9 commit c8621a5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,21 @@ export default defineConfig({

test: {
setupFiles: ["./vitest-setup.js"],
include: ["src/**/*.{test,spec}.{js,ts}"],
include: [
"src/lib/**/*.{test,spec}.{js,ts}",
"src/routes/**/*.{test,spec}.{js,ts}",
],
exclude: [
...configDefaults.exclude,
"storybook-static",
"node_modules",
"./src/config/*",
"../src/**/*.stories.@(js|jsx|ts|tsx|svelte)",
],
environment: "jsdom",
coverage: {
reporter: ["text", "html", "clover", "json"],
include: ["src/lib/**", "src/routes/**"],
reporter: ["text", "html", "lcov", "clover", "json", "json-summary"],
},
},
});

0 comments on commit c8621a5

Please sign in to comment.