@@ -120,6 +120,15 @@ function expectThreadedNonIsolatedRunner(config: {
|
120 | 120 | expect(normalizeConfigPath(testConfig.runner)).toBe("test/non-isolated-runner.ts"); |
121 | 121 | } |
122 | 122 | |
| 123 | +function expectThreadedIsolatedRunner(config: { |
| 124 | +test?: { pool?: unknown; isolate?: unknown; runner?: unknown }; |
| 125 | +}) { |
| 126 | +const testConfig = requireTestConfig(config); |
| 127 | +expect(testConfig.pool).toBe("threads"); |
| 128 | +expect(testConfig.isolate).toBe(true); |
| 129 | +expect(testConfig.runner).toBeUndefined(); |
| 130 | +} |
| 131 | + |
123 | 132 | describe("resolveVitestIsolation", () => { |
124 | 133 | it("aliases private QA plugin SDK subpaths for source tests only", () => { |
125 | 134 | for (const subpath of PRIVATE_PLUGIN_SDK_SUBPATHS) { |
@@ -362,7 +371,6 @@ describe("scoped vitest configs", () => {
|
362 | 371 | defaultExtensionProvidersConfig, |
363 | 372 | defaultExtensionSignalConfig, |
364 | 373 | defaultExtensionSlackConfig, |
365 | | -defaultInfraConfig, |
366 | 374 | defaultAutoReplyConfig, |
367 | 375 | defaultAutoReplyCoreConfig, |
368 | 376 | defaultAutoReplyTopLevelConfig, |
@@ -379,6 +387,7 @@ describe("scoped vitest configs", () => {
|
379 | 387 | expectThreadedNonIsolatedRunner(defaultCommandsConfig); |
380 | 388 | |
381 | 389 | expectThreadedNonIsolatedRunner(defaultUiConfig); |
| 390 | +expectThreadedIsolatedRunner(defaultInfraConfig); |
382 | 391 | }); |
383 | 392 | |
384 | 393 | it("keeps the process lane off the openclaw runtime setup", () => { |
|