-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathvitest.config.ts
More file actions
48 lines (46 loc) · 1.47 KB
/
vitest.config.ts
File metadata and controls
48 lines (46 loc) · 1.47 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
41
42
43
44
45
46
47
48
// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
import { defineConfig, defineProject } from 'vitest/config'
import { playwright } from '@vitest/browser-playwright'
export default defineConfig({
test: {
coverage: {
include: ['src/**/*.ts'],
provider: 'v8',
reporter: ['text', 'html', 'lcov'],
thresholds: {
lines: 0,
functions: 0,
branches: 0,
statements: 0,
},
},
environment: 'node',
include: ['src/**/*.test.ts'],
projects: [
defineProject({
test: {
name: 'node',
environment: 'node',
include: ['src/**/*.test.ts'],
},
}),
defineProject({
test: {
name: 'browser',
include: ['src/**/*.test.ts'],
browser: {
enabled: true,
provider: playwright({
trace: 'off',
screenshot: 'off',
video: 'off',
}),
instances: [{ browser: 'chromium' }],
headless: true,
},
},
}),
],
},
})