-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
38 lines (37 loc) · 1016 Bytes
/
vitest.config.ts
File metadata and controls
38 lines (37 loc) · 1016 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
28
29
30
31
32
33
34
35
36
37
38
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
projects: [
{
extends: true,
test: {
name: 'node',
include: [
'./src/**/*.{test,spec}.?(c|m)[jt]s?(x)',
'./tests/**/*.{test,spec}.?(c|m)[jt]s?(x)'
]
}
},
{
test: {
name: 'browser',
browser: {
enabled: true,
provider: 'playwright',
instances: [{ browser: 'chromium' }],
headless: true
},
include: [
'./src/**/*.{test,spec}.?(c|m)[jt]s?(x)',
'./tests/**/*.{test,spec}.?(c|m)[jt]s?(x)'
],
exclude: [
'./src/utils/getResultsFromArrayBuffer/getResultsFromArrayBuffer.test.ts',
'./src/utils/convertToArrayBufferIfNodeBuffer/convertToArrayBufferIfNodeBuffer.test.ts',
'./src/utils/isNodeBuffer/isNodeBuffer.test.ts'
]
}
}
]
}
});