-
Notifications
You must be signed in to change notification settings - Fork 3
/
vitest.browser.config.ts
43 lines (40 loc) · 1.06 KB
/
vitest.browser.config.ts
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
42
43
/**
* Used for running app's browser tests of client code.
*/
import { defineConfig, mergeConfig } from 'vitest/config';
import commonConfig from './vitest.common.config';
export default defineConfig((configEnv) =>
mergeConfig(
commonConfig(configEnv),
defineConfig({
/* https://github.com/vitest-dev/vitest/issues/3286 */
// optimizeDeps: {
// exclude: [
// 'vitest',
// 'vitest/utils',
// 'vitest/browser',
// 'vitest/runners',
// '@vitest/utils',
// ],
// include: [
// '@vitest/utils > concordance',
// '@vitest/utils > loupe',
// '@vitest/utils > pretty-format',
// 'vitest > chai',
// ],
// },
test: {
include: ['src/**/*.browser-test.{js,ts}'],
browser: {
enabled: true,
name: 'chromium',
headless: true,
provider: 'playwright',
},
coverage: {
reportsDirectory: './reports/vitest/coverage/app/browser',
},
},
}),
),
);