-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
27 lines (25 loc) · 677 Bytes
/
vitest.config.ts
File metadata and controls
27 lines (25 loc) · 677 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
25
26
27
import { playwright } from '@vitest/browser-playwright';
import { defineConfig } from 'vitest/config';
const isBrowserTest = process.argv.some((arg) => arg.includes('--browser'));
export default defineConfig({
test: {
include: isBrowserTest
? [
'test/parser.test.ts',
'test/formatter.test.ts',
'test/validator.test.ts',
'test/whatwg_stream.test.ts'
]
: ['test/**/*.test.ts'],
browser: {
enabled: isBrowserTest,
provider: playwright(),
instances: [
{ browser: 'chromium' },
{ browser: 'firefox' },
{ browser: 'webkit' }
],
headless: true
}
}
});