-
-
Notifications
You must be signed in to change notification settings - Fork 198
Expand file tree
/
Copy pathvitest.config.ts
More file actions
24 lines (23 loc) · 883 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
24 lines (23 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
import path from 'path';
export default defineConfig({
plugins: [react()],
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./vitest.setup.ts'],
// integration/** is the dockerized Playwright suite (run via
// `npm run test:integration`); examples/** is untracked sample code; and
// repos/** holds sibling checkouts with their own runners. node_modules
// must be globbed at any depth or the nested repos/*/node_modules trees
// get collected too.
// scripts/lite/smoke/** is the Playwright smoke for the static Lite export.
exclude: ['integration/**', 'examples/**', 'repos/**', '**/node_modules/**', '.next/**', 'out/**', 'scripts/lite/smoke/**'],
},
resolve: {
alias: {
'@': path.resolve(__dirname, './'),
},
},
});