test: split vitest into unit and gateway

This commit is contained in:
Peter Steinberger
2026-01-23 07:34:50 +00:00
parent aed8dc1ade
commit 45ce07a098
4 changed files with 78 additions and 1 deletions

15
vitest.gateway.config.ts Normal file
View File

@@ -0,0 +1,15 @@
import { defineConfig, mergeConfig } from "vitest/config";
import baseConfig from "./vitest.config.ts";
const baseTest = (baseConfig as { test?: { exclude?: string[] } }).test ?? {};
const exclude = baseTest.exclude ?? [];
export default mergeConfig(
baseConfig,
defineConfig({
test: {
include: ["src/gateway/**/*.test.ts", "extensions/**/*.test.ts"],
exclude,
},
}),
);