test: default vitest root projects to threads

This commit is contained in:
Peter Steinberger
2026-04-04 04:30:17 +01:00
parent fb5066dfb1
commit bb1cc84d50
13 changed files with 90 additions and 14 deletions

View File

@@ -3,8 +3,12 @@ import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
export function createUiVitestConfig(env?: Record<string, string | undefined>) {
return createScopedVitestConfig(["ui/src/ui/**/*.test.ts"], {
dir: "ui/src/ui",
environment: "jsdom",
env,
isolate: true,
name: "ui",
setupFiles: ["ui/src/test-helpers/lit-warnings.setup.ts"],
useNonIsolatedRunner: false,
});
}