mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 05:00:22 +00:00
test: default scoped vitest configs to no-isolate
This commit is contained in:
@@ -2,6 +2,7 @@ import fs from "node:fs";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
import { afterEach, describe, expect, it } from "vitest";
|
||||
import unitConfig from "../vitest.unit.config.ts";
|
||||
import {
|
||||
loadExtraExcludePatternsFromEnv,
|
||||
loadIncludePatternsFromEnv,
|
||||
@@ -77,3 +78,9 @@ describe("loadExtraExcludePatternsFromEnv", () => {
|
||||
).toThrow(/JSON array/u);
|
||||
});
|
||||
});
|
||||
|
||||
describe("unit vitest config", () => {
|
||||
it("defaults unit tests to non-isolated mode", () => {
|
||||
expect(unitConfig.test?.isolate).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user