mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
test: split fast lane from channel and gateway suites
This commit is contained in:
20
vitest.channels.config.ts
Normal file
20
vitest.channels.config.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { defineConfig } from "vitest/config";
|
||||
import baseConfig from "./vitest.config.ts";
|
||||
|
||||
const base = baseConfig as unknown as Record<string, unknown>;
|
||||
const baseTest = (baseConfig as { test?: { exclude?: string[] } }).test ?? {};
|
||||
|
||||
export default defineConfig({
|
||||
...base,
|
||||
test: {
|
||||
...baseTest,
|
||||
include: [
|
||||
"src/telegram/**/*.test.ts",
|
||||
"src/discord/**/*.test.ts",
|
||||
"src/web/**/*.test.ts",
|
||||
"src/browser/**/*.test.ts",
|
||||
"src/line/**/*.test.ts",
|
||||
],
|
||||
exclude: [...(baseTest.exclude ?? []), "src/gateway/**", "extensions/**"],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user