Skip to content

Commit ce99259

Browse files
committed
feat: modified test coverage config
1 parent ca0296e commit ce99259

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

vite.config.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,28 @@ export default defineConfig({
2828
thresholds: {
2929
statements: 50,
3030
},
31+
exclude: [
32+
'coverage/**',
33+
'dist/**',
34+
'**/[.]**',
35+
'packages/*/test?(s)/**',
36+
'**/*.d.ts',
37+
'**/virtual:*',
38+
'**/__x00__*',
39+
'**/\x00*',
40+
'cypress/**',
41+
'test?(s)/**',
42+
'test?(-*).?(c|m)[jt]s?(x)',
43+
'**/*{.,-}{test,spec}.?(c|m)[jt]s?(x)',
44+
'**/__tests__/**',
45+
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,tailwind,postcss}.config.*',
46+
'**/vitest.{workspace,projects}.[jt]s?(on)',
47+
'**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}',
48+
'**/src/firebase.ts',
49+
'**/src/main.tsx',
50+
]
3151
},
52+
include: ['**/*.{test,spec}.[t]s?(x)'],
53+
exclude: ['**/node_modules/**', '**/dist/**', '**/cypress/**', '**/.{idea,git,cache,output,temp}/**', '**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*']
3254
},
3355
});

0 commit comments

Comments
 (0)