Skip to content

Commit 16325b9

Browse files
committed
fix: vitest should only check against tests in src folder
1 parent b598289 commit 16325b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vitest.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig } from 'vitest/config'
2+
3+
export default defineConfig({
4+
test: {
5+
// Only get files from within the src folder
6+
include: ['src/**\/*.{test,spec}.?(c|m)[jt]s?(x)']
7+
}
8+
})

0 commit comments

Comments
 (0)