mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 05:31:33 +00:00
* refactor(ui): generate locale bundles from canonical translation memory * fix(ui): keep server-only locale config out of browser test helpers
21 lines
691 B
TypeScript
21 lines
691 B
TypeScript
// Control UI config module wires vitest behavior.
|
|
import { defineConfig } from "vitest/config";
|
|
import { resolveDefaultVitestPool } from "../test/vitest/vitest.shared.config.ts";
|
|
import { controlUiLocaleModulesPlugin } from "./config/control-ui-locales.ts";
|
|
|
|
// Node-only tests for pure logic (no Playwright/browser dependency).
|
|
export default defineConfig({
|
|
plugins: [controlUiLocaleModulesPlugin()],
|
|
test: {
|
|
isolate: false,
|
|
pool: resolveDefaultVitestPool(),
|
|
testTimeout: 120_000,
|
|
include: [
|
|
"src/**/*.node.test.ts",
|
|
"src/pages/chat/chat-responsive.browser.test.ts",
|
|
"src/pages/sessions/view.browser.test.ts",
|
|
],
|
|
environment: "node",
|
|
},
|
|
});
|