vitest.config.ts
1import { defineConfig } from "vitest/config";2import solidPlugin from "vite-plugin-solid";34export default defineConfig({5 plugins: [solidPlugin()],6 test: {7 include: ["src/**/*.test.ts", "src/**/*.test.tsx"],8 exclude: ["src/drafts/**"],9 environment: "node",10 environmentMatchGlobs: [11 ["src/content/content.orchestration.test.ts", "jsdom"],12 ],13 // M14/SEC-007: tests exercising dev-only handlers14 // (DEBUG_INJECT_INCOMING_PAIRING) use vi.stubEnv('MODE','development').15 // Default test MODE is 'test', so the production gate engages by default.16 },17});