perf(test): speed gateway suite resets with unique config roots

This commit is contained in:
Peter Steinberger
2026-02-13 23:33:08 +00:00
parent e794ef0478
commit 2378d770d1

View File

@@ -221,10 +221,10 @@ export function installGatewayTestHooks(options?: { scope?: "test" | "suite" })
if (scope === "suite") { if (scope === "suite") {
beforeAll(async () => { beforeAll(async () => {
await setupGatewayTestHome(); await setupGatewayTestHome();
await resetGatewayTestState({ uniqueConfigRoot: false }); await resetGatewayTestState({ uniqueConfigRoot: true });
}); });
beforeEach(async () => { beforeEach(async () => {
await resetGatewayTestState({ uniqueConfigRoot: false }); await resetGatewayTestState({ uniqueConfigRoot: true });
}, 60_000); }, 60_000);
afterEach(async () => { afterEach(async () => {
await cleanupGatewayTestHome({ restoreEnv: false }); await cleanupGatewayTestHome({ restoreEnv: false });