test: restore thread-first vitest defaults

This commit is contained in:
Peter Steinberger
2026-04-05 11:29:01 +01:00
parent dbac5fa258
commit 41d08a6feb
12 changed files with 57 additions and 45 deletions

View File

@@ -13,14 +13,14 @@ describe("projects vitest config", () => {
expect(baseConfig.test?.projects).toEqual([...rootVitestProjects]);
});
it("keeps the heavy root projects on fork workers only where explicitly required", () => {
expect(createGatewayVitestConfig().test.pool).toBe("forks");
expect(createAgentsVitestConfig().test.pool).toBe("forks");
expect(createCommandsVitestConfig().test.pool).toBe("forks");
it("keeps root projects on the shared thread-first pool by default", () => {
expect(createGatewayVitestConfig().test.pool).toBe("threads");
expect(createAgentsVitestConfig().test.pool).toBe("threads");
expect(createCommandsVitestConfig().test.pool).toBe("threads");
expect(createContractsVitestConfig().test.pool).toBe("threads");
});
it("keeps the contracts lane on the shared non-isolated runner", () => {
it("keeps the contracts lane on the non-isolated runner by default", () => {
const config = createContractsVitestConfig();
expect(config.test.isolate).toBe(false);
expect(config.test.runner).toBe("./test/non-isolated-runner.ts");
@@ -36,13 +36,13 @@ describe("projects vitest config", () => {
expect(config.test.deps?.optimizer?.web?.enabled).toBe(true);
});
it("keeps the unit lane on the shared non-isolated runner", () => {
it("keeps the unit lane on the non-isolated runner by default", () => {
const config = createUnitVitestConfig();
expect(config.test.isolate).toBe(false);
expect(config.test.runner).toBe("./test/non-isolated-runner.ts");
});
it("keeps the bundled lane on the shared non-isolated runner", () => {
it("keeps the bundled lane on thread workers with the non-isolated runner", () => {
expect(bundledConfig.test?.pool).toBe("threads");
expect(bundledConfig.test?.isolate).toBe(false);
expect(bundledConfig.test?.runner).toBe("./test/non-isolated-runner.ts");