-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvitest.config.js
41 lines (37 loc) · 1.01 KB
/
vitest.config.js
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
41
import { SummaryReporter } from '@hypothesis/frontend-testing/vitest';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
reporters: [new SummaryReporter()],
browser: {
provider: 'playwright',
enabled: true,
headless: true,
screenshotFailures: false,
instances: [{ browser: 'chromium' }],
},
// CSS bundle relied upon by accessibility tests (eg. for color-contrast
// checks).
setupFiles: './build/styles/test.css',
include: [
// Test bundle
'./build/scripts/tests.bundle.js',
],
coverage: {
enabled: true,
provider: 'istanbul',
reportsDirectory: './coverage',
reporter: ['json', 'html'],
include: ['src/**/*.{ts,tsx}'],
exclude: [
'**/node_modules/**',
'**/test/**/*.js',
'**/test-util/**',
'src/components/icons/**/*.ts*',
'src/pattern-library/**/*.js',
'src/pattern-library/**/*.ts*',
],
},
},
});