Skip to content

Commit

Permalink
exclude translations from vite coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sirineJ committed Dec 17, 2024
1 parent d2c69bd commit 0c45cf4
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/

import { defineConfig } from 'vite';
import { defineConfig, coverageConfigDefaults } from 'vitest/config.js';
import GithubActionsReporter from 'vitest-github-actions-reporter';

import { css } from './packages/circuit-ui/vite.config.js';
Expand All @@ -27,25 +27,12 @@ export default defineConfig({
coverage: {
exclude: [
// Default
'coverage/**',
'dist/**',
'**/[.]**',
'packages/*/test?(s)/**',
'**/*.d.ts',
'**/virtual:*',
'**/__x00__*',
'**/\x00*',
'cypress/**',
'test?(s)/**',
'test?(-*).?(c|m)[jt]s?(x)',
'**/*{.,-}{test,spec}.?(c|m)[jt]s?(x)',
'**/__tests__/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,lint-staged,remix,astro}.config.*',
'**/vitest.{workspace,projects}.[jt]s?(on)',
'**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}',
...coverageConfigDefaults.exclude,
// Custom
'**/*.stories.*',
'**/index.*',
'**/*.json.js',
'**/dist/**',
],
},
},
Expand Down

0 comments on commit 0c45cf4

Please sign in to comment.