487902421b
* feat: add web test framework with infra-backed suites * fix: honor DATABASE_URL env in integration prepare script * fix: apply web test review feedback * fix: streamline web test infra lifecycle and workflow scope
29 lines
647 B
TypeScript
29 lines
647 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
|
|
export default defineConfig({
|
|
plugins: [tsconfigPaths()],
|
|
test: {
|
|
environment: "node",
|
|
globals: true,
|
|
setupFiles: [
|
|
"./src/test/setup/setup-env.ts",
|
|
"./src/test/setup/setup-tests.ts",
|
|
],
|
|
clearMocks: true,
|
|
restoreMocks: true,
|
|
mockReset: true,
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "html"],
|
|
include: ["src/**/*.{ts,tsx}"],
|
|
exclude: [
|
|
"src/**/*.test.{ts,tsx}",
|
|
"src/**/*.spec.{ts,tsx}",
|
|
"src/test/**",
|
|
"src/env.js",
|
|
],
|
|
},
|
|
},
|
|
});
|