refactor(test): extract shared gateway hook and vitest scoped config helpers

This commit is contained in:
Peter Steinberger
2026-03-02 14:35:49 +00:00
parent 741e74972b
commit e41f9998f7
6 changed files with 76 additions and 88 deletions

View File

@@ -1,15 +1,3 @@
import { defineConfig } from "vitest/config";
import baseConfig from "./vitest.config.ts";
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
const base = baseConfig as unknown as Record<string, unknown>;
const baseTest = (baseConfig as { test?: { exclude?: string[] } }).test ?? {};
const exclude = baseTest.exclude ?? [];
export default defineConfig({
...base,
test: {
...baseTest,
include: ["src/gateway/**/*.test.ts"],
exclude,
},
});
export default createScopedVitestConfig(["src/gateway/**/*.test.ts"]);