mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-27 21:55:15 -05:00
23 lines
927 B
TypeScript
23 lines
927 B
TypeScript
import { configDefaults, defineConfig } from "vitest/config";
|
|
|
|
// Scanner golden-file suite: Node-side (OpenCV.js WASM + @napi-rs/canvas image
|
|
// IO), sweeping every fixture under app/features/scanner/tests/fixtures. Kept
|
|
// out of the unit project so `--project unit` stays fast, and out of CI
|
|
// (`test:unit:browser`) because the game icons come from a sibling
|
|
// sendou-ink/assets checkout the runner does not have — run it locally with
|
|
// `pnpm test:scanner`. The fixture-free logic tests live in
|
|
// app/features/scanner/tests/logic and run in the unit project instead.
|
|
export default defineConfig({
|
|
test: {
|
|
name: "scanner",
|
|
include: ["app/features/scanner/tests/*.test.{ts,tsx}"],
|
|
exclude: [...configDefaults.exclude, "**/*.browser.test.{ts,tsx}"],
|
|
// OpenCV WASM init takes seconds and the fixture sweeps are heavy
|
|
testTimeout: 120_000,
|
|
hookTimeout: 120_000,
|
|
},
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
},
|
|
});
|