test: 集成测试串行化(共享设施跨文件竞态,三仓同文件)

This commit is contained in:
lovefyf
2026-08-13 04:25:43 +08:00
parent 053e6224ee
commit 6beb663cf0
+3
View File
@@ -4,6 +4,9 @@ export default defineConfig({
test: {
include: ['test/**/*.test.ts'],
setupFiles: ['test/support/setup.ts'],
// 测试文件串行:集成测试共用同一套 PG/NATS,并行跑会互相踩——relay 那类"扫全表"的
// 用例会把别的文件刚落的 outbox 行发到共用 NATS 上去。三仓同文件同设置。
fileParallelism: false,
testTimeout: 30_000,
hookTimeout: 30_000,
},