mirror of
https://github.com/jestr-ai/jestr-apps.git
synced 2026-08-12 08:24:10 +02:00
18 lines
704 B
TypeScript
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',
|
|
},
|
|
})
|