Skip to content

Commit c6d1ccb

Browse files
committed
chore: fix vitest config to check for all *.test.js files
1 parent 2b09e14 commit c6d1ccb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

vite.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ export default defineConfig(({ mode }) => {
2121
},
2222
plugins: [million.vite({ auto: true }), react()],
2323
test: {
24-
include: ["src/**/*.test.js"],
24+
include: ["**/*.test.js"],
25+
exclude: [
26+
"**/node_modules/**",
27+
"**/dist/**",
28+
"**/.{idea,git,cache,output,temp}/**",
29+
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*",
30+
],
2531
},
2632
server: {
2733
watch: {

0 commit comments

Comments
 (0)