ci: vitest forks
This commit is contained in:
@@ -62,10 +62,12 @@ export default defineConfig({
|
|||||||
plugins: [pathsPlugin()],
|
plugins: [pathsPlugin()],
|
||||||
test: {
|
test: {
|
||||||
name: 'thread-safe',
|
name: 'thread-safe',
|
||||||
// Node 24 has aborted in its CJS lexer from a macOS arm64 worker
|
// Node 24 has aborted in its CJS lexer (v8::ToLocalChecked Empty
|
||||||
// thread. A fork contains that external runtime failure to the test
|
// MaybeLocal in cjs_lexer::Parse) from worker threads on macOS
|
||||||
// process; other hosts retain the lower-overhead thread pool.
|
// arm64 and later on Linux. A fork contains that external runtime
|
||||||
pool: process.platform === 'darwin' ? 'forks' : 'threads',
|
// failure to the test process; Windows keeps the thread pool, where
|
||||||
|
// the abort has not reproduced and process spawn is costlier.
|
||||||
|
pool: process.platform === 'win32' ? 'threads' : 'forks',
|
||||||
setupFiles: ['./scripts/test-invariants.ts'],
|
setupFiles: ['./scripts/test-invariants.ts'],
|
||||||
include: testIncludes,
|
include: testIncludes,
|
||||||
exclude: [
|
exclude: [
|
||||||
|
|||||||
Reference in New Issue
Block a user