Skip to content

Commit

Permalink
ci(coverage): Exclude a whole bunch of unneeded directories and files…
Browse files Browse the repository at this point in the history
… used to calculate the frontend code coverage percentages (#1292)
  • Loading branch information
drikusroor authored Sep 30, 2024
1 parent 81accec commit b34ae84
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions frontend/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,27 @@ export default defineConfig({
coverage: {
reportsDirectory: 'public/coverage',
provider: 'v8',
reporter: "json-summary",
reporter: ["text", "json-summary"],
exclude: [
'node_modules/**',
'storybook-static/**',
'src/stories/**',
'src/config/**',
'src/**/*.stories.{js,jsx,ts,tsx}',
'src/index.tsx',
'src/serviceWorker.js',
'.pnp.cjs',
'.pnp.loader.mjs',
'.storybook/**',
'.yarn/**',
'src/util/testUtils/useEffectDebugger.js',
'src/util/__mocks__/**',
],
},
},
resolve: {
alias: {
'@/': '/src/',
'@/': '/src/',
},
},
},
})

0 comments on commit b34ae84

Please sign in to comment.