项目文件夹

文件
wehub-resource-sync 070959e133
landing-page-staging / Deploy landing page to staging (push) Has been skipped
landing-page-ci / Validate landing page (push) Failing after 4s
visual-baseline / Capture visual baselines (push) Has been cancelled
bake-plugin-previews / Bake plugin previews (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:00:47 +08:00

23 行
597 B
TypeScript

import { defineConfig } from 'vitest/config';
import { fileURLToPath } from 'node:url';
const configuredMaxWorkers = Number.parseInt(process.env.OD_E2E_VITEST_MAX_WORKERS ?? '4', 10);
const maxWorkers = Number.isFinite(configuredMaxWorkers) && configuredMaxWorkers > 0
? configuredMaxWorkers
: 4;
export default defineConfig({
resolve: {
alias: {
'@': fileURLToPath(new URL('./lib', import.meta.url)),
},
},
test: {
environment: 'node',
fileParallelism: true,
include: ['specs/**/*.spec.ts', 'tests/**/*.test.ts'],
maxWorkers,
pool: 'forks',
},
});