mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-06 06:41:08 +00:00
17 lines
534 B
TypeScript
17 lines
534 B
TypeScript
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
|
import { jsdomOptimizedDeps } from "./vitest.shared.config.ts";
|
|
|
|
export function createUiVitestConfig(env?: Record<string, string | undefined>) {
|
|
return createScopedVitestConfig(["ui/src/ui/**/*.test.ts"], {
|
|
deps: jsdomOptimizedDeps,
|
|
dir: "ui/src/ui",
|
|
environment: "jsdom",
|
|
env,
|
|
includeOpenClawRuntimeSetup: false,
|
|
name: "ui",
|
|
setupFiles: ["ui/src/test-helpers/lit-warnings.setup.ts"],
|
|
});
|
|
}
|
|
|
|
export default createUiVitestConfig();
|