test: split fast lane from channel and gateway suites

This commit is contained in:
Peter Steinberger
2026-03-02 05:31:39 +00:00
parent a13586619b
commit 842deefe5d
5 changed files with 72 additions and 23 deletions

20
vitest.channels.config.ts Normal file
View 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/**"],
},
});