-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.ts
More file actions
40 lines (39 loc) · 1.02 KB
/
vitest.config.ts
File metadata and controls
40 lines (39 loc) · 1.02 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
import baseViteConfig from './vite.config';
import { defineConfig } from 'vitest/config';
export default defineConfig({
...baseViteConfig,
test: {
retry: 3,
slowTestThreshold: 15_000,
testTimeout: 10_000,
include: ['tests/**/*.test.ts'],
name: 'browser',
setupFiles: ['./tests/browsers/setup.ts'],
expandSnapshotDiff: true,
browser: {
headless: true,
provider: 'playwright', // or 'webdriverio'
enabled: true,
instances: [
{
browser: 'chromium',
launch: {
headless: true,
args: ['--enable-unsafe-webgpu'],
},
context: {
viewport: { width: 1920, height: 1080 },
screen: { width: 1920, height: 1080 },
},
},
], // { browser: 'firefox' }
},
coverage: {
provider: 'v8',
// extends: '@istanbuljs/nyc-config-typescript',
include: ['s2'],
all: true,
reporter: ['html-spa', 'lcovonly', 'cobertura', 'text-summary'],
},
},
});