mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-15 07:36:27 -05:00
24 lines
627 B
TypeScript
24 lines
627 B
TypeScript
import { configDefaults, defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
name: "unit",
|
|
include: ["**/*.test.{ts,tsx}"],
|
|
exclude: [
|
|
...configDefaults.exclude,
|
|
"e2e/**",
|
|
"**/*.browser.test.{ts,tsx}",
|
|
// golden-file suites live in vitest.scanner.config.ts; tests/logic/ needs no fixtures so stays here
|
|
"app/features/scanner/tests/*.test.{ts,tsx}",
|
|
],
|
|
setupFiles: ["./app/test-setup.ts"],
|
|
// the scanner-ingest scenario suite's real ingest action is gated on Config.scannerEnabled
|
|
env: {
|
|
VITE_SCANNER_ENABLED: "true",
|
|
},
|
|
},
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
},
|
|
});
|