Skip to content

Commit

Permalink
feat: ignore cypress files in coverage by default
Browse files Browse the repository at this point in the history
Projects using Cypress often have e2e spec files in a `cypress` directory that currently needs to be manually ignored.
This is the case for `create-vue` projects for example.

This commit adds `cypress/**` to the default excludes of the code coverage config.
  • Loading branch information
cexbrayat committed Jan 28, 2022
1 parent 9000888 commit 631edee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vitest/src/integrations/coverage.ts
Expand Up @@ -10,6 +10,7 @@ const defaultExcludes = [
'coverage/**',
'packages/*/test{,s}/**',
'**/*.d.ts',
'cypress/**',
'test{,s}/**',
'test{,-*}.{js,cjs,mjs,ts,tsx,jsx}',
'**/*{.,-}test.{js,cjs,mjs,ts,tsx,jsx}',
Expand Down

0 comments on commit 631edee

Please sign in to comment.