Files
waggle-os/vitest.config.ts
shumeiko.it 5f088698dd chore: remove internal documents and service directories (P2.2 part 1)
The commercial repository carries the product's internal history: audits,
screenshots, briefs, decisions, pricing, publication drafts, personal data
and research runs. None of it belongs in the community edition.

- delete judging/, "UAT 3/", benchmarks/ (including LoCoMo data under
  CC BY-NC), preflight-results/, gepa-phase-5/, notes/, decisions/,
  .understand-anything/, .agents/, .lovable/, the legacy sidecar/ package
  and waggle-cowork/ (an analysis of Claude Code sources)
- delete docs/ except docs/oss, the user guides (without the team-mode
  guide), the reference, methodology, architecture, getting-started and
  contributing pages, which P2.4 rewrites
- delete render.yaml, .parity-allowlist, the retired mind-parity and
  sync-mind workflows and 29 one-off scripts nothing references
- delete tests that only checked removed files (sidecar package, Render
  blueprint, UAT capture, benchmark harness isolation, internal audit and
  signing docs); drop sidecar/ and benchmarks/ from the hive-mind subtree
  split guard; prune ignore, attribute, lint and test globs
- replace the commercial README with an interim one for this edition

Source comments still point at some deleted docs; P2.2 part 2 cleans them
together with names and paths.
2026-10-20 01:02:18 +02:00

56 lines
2.0 KiB
TypeScript

import { defineConfig } from 'vitest/config';
import path from 'node:path';
import { INFRA_TEST_SUITES } from './vitest.infra-suites';
import { waggleSrcAliases } from './vitest.aliases';
export default defineConfig({
resolve: {
alias: {
// Resolve every @waggle/* workspace package from src/ so tests don't need
// a build step (several packages export dist/, unbuilt on fresh checkout/CI).
...waggleSrcAliases(__dirname),
// App uses @/ alias for src directory
'@/': path.resolve(__dirname, 'app/src') + '/',
'@': path.resolve(__dirname, 'app/src'),
},
},
test: {
globals: true,
// Passing tests should not bury failures under expected provider/startup
// diagnostics. Use `--silent=false` when investigating a failing case.
silent: true,
testTimeout: 30_000,
setupFiles: ['./vitest.setup.ts'],
pool: 'forks',
maxWorkers: 4,
include: [
'packages/*/tests/**/*.test.ts',
'packages/*/tests/**/*.test.tsx',
'packages/*/src/**/*.test.ts',
'tests/**/*.test.ts',
'scripts/**/*.test.ts',
'app/scripts/**/*.test.ts',
'app/tests/**/*.test.ts',
],
// INFRA_TEST_SUITES require live Postgres (5434) + Redis (6381); excluded
// from the default gate so `npm test` runs green without Docker. Run them
// via `npm run test:infra`.
exclude: [
'apps/**', 'node_modules/**', '**/__faza1-closed/**',
...INFRA_TEST_SUITES,
// Copies the ~13MB pre-built packages/marketplace/marketplace.db fixture
// (createTempDb). Proper fix: regenerate it from sources-seed.ts in test
// setup (P1.6).
'packages/marketplace/tests/sync-verification.test.ts',
// Wall-clock budgets run in a dedicated lane so filesystem/process
// contention cannot make the deterministic correctness gate flaky.
'packages/server/tests/performance/**',
],
coverage: {
provider: 'v8',
include: ['packages/*/src/**/*.ts'],
exclude: ['packages/*/src/**/*.d.ts'],
},
},
});