mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-20 13:41:30 +00:00
26 lines
863 B
TypeScript
26 lines
863 B
TypeScript
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
|
|
|
const nonCoreGatewayTestExclude = [
|
|
"src/gateway/server-methods/**/*.test.ts",
|
|
"src/gateway/protocol/**/*.test.ts",
|
|
"src/gateway/**/*client*.test.ts",
|
|
"src/gateway/**/*reconnect*.test.ts",
|
|
"src/gateway/**/*android-node*.test.ts",
|
|
"src/gateway/**/*gateway-cli-backend*.test.ts",
|
|
"src/gateway/**/*server*.test.ts",
|
|
"src/gateway/gateway.test.ts",
|
|
"src/gateway/server.startup-matrix-migration.integration.test.ts",
|
|
"src/gateway/sessions-history-http.test.ts",
|
|
];
|
|
|
|
export function createGatewayCoreVitestConfig(env?: Record<string, string | undefined>) {
|
|
return createScopedVitestConfig(["src/gateway/**/*.test.ts"], {
|
|
dir: "src/gateway",
|
|
env,
|
|
exclude: nonCoreGatewayTestExclude,
|
|
name: "gateway-core",
|
|
});
|
|
}
|
|
|
|
export default createGatewayCoreVitestConfig();
|