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 environment: "node",9 environmentMatchGlobs: [10 ["src/content/content.orchestration.test.ts", "jsdom"],11 ],12 // M14/SEC-007: tests exercising dev-only handlers13 // (DEBUG_INJECT_INCOMING_PAIRING) use vi.stubEnv('MODE','development').14 // Default test MODE is 'test', so the production gate engages by default.15 },16});