moving
Some checks failed
Installer Smoke / installer-smoke (push) Has been cancelled

This commit is contained in:
Oleg Maslov
2026-09-02 10:10:29 +02:00
commit 0c3e2ead3b
3841 changed files with 970576 additions and 0 deletions

56
vitest.config.ts Normal file
View File

@@ -0,0 +1,56 @@
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/hive-mind-wiki-compiler/src/**/*.test.ts',
'tests/**/*.test.ts',
'app/scripts/**/*.test.ts',
'app/tests/**/*.test.ts',
'benchmarks/*/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`. See docs/audits/2026-06-01-full-repo-verification-sweep.md.
exclude: [
'apps/**', 'node_modules/**', '**/__faza1-closed/**',
...INFRA_TEST_SUITES,
// Requires the gitignored ~13MB pre-built packages/marketplace/marketplace.db
// fixture (createTempDb copies it); absent on a clean checkout / CI. Proper
// fix (regenerate from sources-seed.ts in test setup) tracked in
// docs/audits/2026-06-01-full-repo-verification-sweep.md.
'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'],
},
},
});