Files
sendou.ink/vitest.unit.config.ts
Kalle 7a5c59b8cd
Some checks failed
E2E Tests / e2e (push) Has been cancelled
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled
Add ingest test scenarios
2026-08-14 21:36:27 +03:00

27 lines
770 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}",
// the scanner golden-file suites have their own heavy project
// (vitest.scanner.config.ts); tests/logic/ stays here because it is
// pure logic over synthetic events and needs no image fixtures
"app/features/scanner/tests/*.test.{ts,tsx}",
],
setupFiles: ["./app/test-setup.ts"],
// the scanner-ingest scenario suite exercises the real ingest action,
// whose gate reads Config.scannerEnabled from this variable
env: {
VITE_SCANNER_ENABLED: "true",
},
},
resolve: {
tsconfigPaths: true,
},
});