Cover mining diagnostics JSON blockers, AV-Safe preset fields, defender_off error paths, and Calibrate exclusion .ps1 generation with Go + Vitest; honest AV limits already documented in settingHelp.
25 lines
739 B
TypeScript
25 lines
739 B
TypeScript
import { readFileSync } from 'node:fs'
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
const pkg = JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf8')) as { version: string }
|
|
|
|
export default defineConfig({
|
|
define: {
|
|
__APP_VERSION__: JSON.stringify(pkg.version),
|
|
},
|
|
test: {
|
|
environment: 'node',
|
|
include: ['src/**/*.test.{ts,tsx}'],
|
|
setupFiles: ['src/test/setup.ts'],
|
|
environmentMatchGlobs: [
|
|
['src/api/**', 'happy-dom'],
|
|
['src/context/**', 'happy-dom'],
|
|
['src/hooks/**', 'happy-dom'],
|
|
['src/pages/**', 'happy-dom'],
|
|
['src/components/**', 'happy-dom'],
|
|
['src/App.test.tsx', 'happy-dom'],
|
|
['src/help/fleetGroups.test.ts', 'happy-dom'],
|
|
],
|
|
},
|
|
});
|