GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — do-knowledge-studio/vitest.config.ts at main · d-oit/do-knowledge-studio Expand file tree/ Copy pathvitest.config.tsMore file actions 69 lines (68 loc) · 2.41 KB / Copy pathvitest.config.tsFile metadata and controls69 lines (68 loc) · 2.41 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 import { defineConfig } from 'vitest/config'; import react from '@vitejs/plugin-react'; import path from 'path'; export default defineConfig({ plugins: [react()], test: { environment: 'jsdom', globals: true, setupFiles: ['src/test/setup.ts'], passWithNoTests: false, exclude: [ '**/node_modules/**', '**/dist/**', 'e2e/**', // Workspace packages run their own suite via `pnpm --filter <pkg> test` // (own env/deps); running them here too would double-execute them. 'packages/**', '**/*.bench.test.ts', ], // Restore spy implementations and global stubs between tests by default. restoreMocks: true, unstubGlobals: true, pool: 'threads', maxWorkers: '50%', // Test-source types are checked separately by `pnpm run typecheck:test`; // Vitest's experimental typecheck feature duplicates that gate and emits a warning. coverage: { provider: 'v8', // `json-summary` writes coverage/coverage-summary.json, which the // "Generate coverage badge" step in .github/workflows/ci-and-labels.yml // reads on every push to main. reporter: ['text', 'json', 'json-summary', 'html'], include: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'], exclude: [ '**/node_modules/**', '**/dist/**', '**/*.config.*', '**/__tests__/**', // Workspace packages are measured by their own suites // (`pnpm --filter <pkg> test`); only root-run imports via the // `dks-core` alias can leak them into this window. 'packages/**', // Test files colocated with source must not inflate coverage — // only production modules count toward thresholds (Plan 131 G7). 'src/**/*.test.ts', 'src/**/*.test.tsx', 'src/**/*.spec.ts', 'src/test/**', ], // Honest baselines measured after excluding test files from coverage // (Plan 131 G7). Plan 130 A18 owns raising these targets. thresholds: { branches: 75, functions: 78, lines: 84, statements: 85, }, }, }, resolve: { alias: { '@': path.resolve(import.meta.dirname, './src'), // Tests consume dks-core from source so the unit suite never depends on // the package's build output; dev/build still compile it via its script. 'dks-core': path.resolve(import.meta.dirname, './packages/dks-core/src'), }, }, }); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |