Skip to content

Commit 5126138

Browse files
committed
chore(vitest): better configuration
1 parent 688861c commit 5126138

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

vitest.config.mts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ export default defineConfig({
1212
],
1313
test: {
1414
root: 'packages',
15-
include: ['**/*.spec.?(c|m)[jt]s?(x)', '**/*.unit.?(c|m)[jt]s?(x)', '!qwik/dist', '!*/lib'],
15+
include: [
16+
'**/*.spec.?(c|m)[jt]s?(x)',
17+
'**/*.unit.?(c|m)[jt]s?(x)',
18+
'!**/dist',
19+
'!**/lib',
20+
'!/starters',
21+
],
1622
setupFiles: ['./vitest-setup.ts'],
1723
},
1824
});

vitest.workspace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import { join } from 'node:path';
44

55
export default defineWorkspace([
66
// For some reason vitest cli doesn't pick up the config in the root
7-
join(process.cwd(), 'vitest.config.mts'),
7+
join(__dirname, 'vitest.config.mts'),
88
]);

0 commit comments

Comments
 (0)