test: default scoped vitest configs to no-isolate

This commit is contained in:
Peter Steinberger
2026-03-22 19:09:26 -07:00
parent 74cb08bede
commit 3ccf1bee2c
5 changed files with 55 additions and 1 deletions

View File

@@ -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);
});
});