Files
jestr-apps/vitest.config.ts
2026-08-09 21:54:29 +03:00

18 lines
704 B
TypeScript

import { defineConfig } from 'vitest/config'
// Deliberately separate from vite.config.ts, which exists to build the
// extension: that config loads @crxjs/vite-plugin and processes the manifest,
// none of which a unit test needs, and loading it here only produced warnings
// about the build's own imports.
//
// Scope note, because it is what keeps this suite fast and worth running: these
// tests cover pure functions only — no DOM, no chrome.*, no IndexedDB, no OPFS.
// Anything that needs those is verified by hand against a real profile, per the
// scenarios in the remediation plan.
export default defineConfig({
test: {
include: ['src/**/*.test.ts'],
environment: 'node',
},
})