Skip to content

Commit e1bf292

Browse files
committed
fix(test): fix test:unit script to exclude e2e tests correctly
Change vitest run filter from glob pattern to --exclude flag to properly run only unit tests without e2e tests.
1 parent c26a287 commit e1bf292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"preview": "nuxt preview --host",
1919
"screenshot": "tsx scripts/screenshot.ts",
2020
"test:e2e": "vitest run e2e/",
21-
"test:unit": "vitest run **/__tests__/**/*.spec.ts",
21+
"test:unit": "vitest run --exclude='e2e/**'",
2222
"test:coverage": "vitest run --coverage",
2323
"typecheck": "vue-tsc --noEmit"
2424
},

0 commit comments

Comments
 (0)