Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update coverage targets #1807

Merged
merged 2 commits into from
Mar 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
another whack
kylemh committed Mar 7, 2024
commit b388325167dea70a98440ec54d01a8465d26e674
16 changes: 14 additions & 2 deletions vitest.config.mts
Original file line number Diff line number Diff line change
@@ -29,7 +29,13 @@ export default defineConfig({
},
coverage: {
reportsDirectory: './vitest-coverage',
include: [
'common/**/*.{js,ts,tsx}',
'components/**/*.{js,ts,tsx}',
'decorators/**/*.{js,ts,tsx}',
],
exclude: [
// Irrelevant configs and local-only scripts
'coverage/**',
'{cypress,vitest}-coverage/**',
'dist/**',
@@ -39,17 +45,23 @@ export default defineConfig({
'{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
'vitest.{workspace,projects}.[jt]s?(on)',
'.{eslint,mocha,prettier}rc.{?(c|m)js,yml}',
'scripts/**',
'test-utils/**',

// Folders covered by integration tests
'node_modules/**',
'cypress/**',
'common/config/**',
'common/styles/**',
'common/constants/**',
'scripts/**',
'test-utils/**',

// No real logic to test here
'common/utils/api-utils.{[jt]s}',
'components/ZipRecruiterJobs/ZipRecruiterJobs.{[jt]s}',
'components/Press/PressLinks/Articles.{[jt]s}',
'components/Timeline/historyData.{[jt]s}',

// Don't collect coverage from import/export mappers
'common/(.*)/index.{[jt]s}',
'components/(.*)/index.{[jt]s}',
],