evidence-source/vitest.config.ts

15 lines
560 B
TypeScript
Raw Normal View History

import { defineConfig } from "vitest/config";
// Headless-only test surface: every test runs in Node, which has full
// pdfjs-dist legacy-worker support. There is no DOM/React surface in this
// repo, so unlike the umbrella app we do not register a happy-dom
// environment. The browser upload helpers (`src/browser/`) are exercised
// with injected URL stubs, so they run in Node too.
export default defineConfig({
test: {
globals: false,
include: ["src/**/*.test.ts", "tests/**/*.test.ts"],
setupFiles: ["tests/setup-pdf-worker.ts"],
},
});