mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 16:10:24 +00:00
test: restore thread-first vitest defaults
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user