Test infrastructure · live
Every push to main runs the full vitest suite + TypeScript type-check in GitHub Actions before the deploy pipeline picks the commit up. A red CI run means the deploy is gated. This page summarises the suite that runs.
crisis-stress-2022 and permutation-test — load 5-year price bars from per-ticker JSON files in data/backtest/. Those files are gitignored to keep the repo small (~32 MB across 327 tickers), so they exist on developer machines but not in CI. Both suites use describe.skipIf(!HAS_DATA) so they cleanly skip on CI rather than cascade-fail. They run end-to-end before any release tag.| Module | Test cases | Source |
|---|---|---|
| multiple-testing | 29 | src/lib/data/__tests__/multiple-testing.test.ts |
| scoring-rules | 28 | src/lib/data/__tests__/scoring-rules.test.ts |
| forward-return-engine | 18 | src/lib/data/__tests__/forward-return-engine.test.ts |
| zscore-composite | 17 | src/lib/data/__tests__/zscore-composite.test.ts |
| kalman-dlm | 16 | src/lib/data/__tests__/kalman-dlm.test.ts |
| conformal | 14 | src/lib/data/__tests__/conformal.test.ts |
| shapley | 14 | src/lib/data/__tests__/shapley.test.ts |
| bayesian-weights | 12 | src/lib/data/__tests__/bayesian-weights.test.ts |
| bocpd | 11 | src/lib/data/__tests__/bocpd.test.ts |
| nlp-scoring | 9 | src/lib/data/__tests__/nlp-scoring.test.ts |
| copula | 8 | src/lib/data/__tests__/copula.test.ts |
| factor-keys | 8 | src/lib/data/__tests__/factor-keys.test.ts |
| knockoff-filter | 7 | src/lib/data/__tests__/knockoff-filter.test.ts |
| crisis-stress-2022 | 6 | src/lib/data/__tests__/crisis-stress-2022.test.ts |
| permutation-test | 5 | src/lib/data/__tests__/permutation-test.test.ts |
| crisis-stress-2008 | 3 | src/lib/data/__tests__/crisis-stress-2008.test.ts |
| crisis-stress-2020 | 3 | src/lib/data/__tests__/crisis-stress-2020.test.ts |
src/lib/data/__tests__/. Numbers below the table are what vitest reports on each CI run; this page recompiles daily.