mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-23 23:22:32 +00:00
16 lines
452 B
TypeScript
16 lines
452 B
TypeScript
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,
|
|
});
|
|
}
|
|
|
|
export default createUiVitestConfig();
|