-
Notifications
You must be signed in to change notification settings - Fork 2
/
vitest.workspace.ts
46 lines (45 loc) · 1.13 KB
/
vitest.workspace.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
44
45
46
import { defineWorkspace } from 'vitest/config'
export default defineWorkspace([
{
extends: 'vitest.config.ts',
test: {
name: 'browser',
browser: {
enabled: true,
viewport: {
width: 1280,
height: 900
},
name: 'chromium',
provider: 'playwright',
// https://playwright.dev
providerOptions: {},
screenshotFailures: false
},
exclude: ['src/atoms', 'src/deprecated', 'src/**/*.jsdom.test.tsx', 'src/**/*.utils.test.ts'],
setupFiles: ['src/tests/setupBrowserTests.ts'],
retry: 1,
css: true
},
},
{
extends: 'vitest.config.ts',
test: {
name: 'jsdom',
server: {
deps: {
inline: ['@equinor/subsurface-app-management']
}
},
include:[
'src/atoms/**/*.test.ts',
'src/atoms/**/*.test.tsx',
'src/**/*.jsdom.test.tsx',
'src/**/*.utils.test.ts'
],
exclude: ['src/deprecated'],
environment: 'jsdom',
setupFiles: ['src/tests/setupNodeTests.ts', 'src/tests/browserMocks.ts', 'src/tests/msalMock.tsx'],
}
}
])