-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mts
More file actions
28 lines (26 loc) · 873 Bytes
/
vitest.config.mts
File metadata and controls
28 lines (26 loc) · 873 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
/**
* Extends shared vitest config.
* Uses forks pool for process isolation during compression/decompression tests.
*/
import { defineConfig, mergeConfig } from 'vitest/config'
import baseConfig from '../../.config/vitest.config.mts'
// oxlint-disable-next-line socket/no-default-export -- vitest CLI auto-discovers config via default import.
export default mergeConfig(
baseConfig,
defineConfig({
test: {
// Use forks pool for full process isolation
// This prevents file system race conditions when tests manipulate binaries
// and sign them with codesign, which can leave file handles open
pool: 'forks',
poolOptions: {
forks: {
// Run all tests in single fork sequentially
singleFork: true,
// Full isolation between test files
isolate: true,
},
},
},
}),
)