JARVIGManual

Testing

ClassExamplesPhase 0
UnitMath, transforms, schemas, codecs, component storagetests/unit/foundation.test.ts
IntegrationImport to cook to load, editor undo, replicationHost boot and boundary tests in tests/integration/hosts.test.ts
GoldenRenderer images with tolerance; scene snapshotstests/golden/health-scene.json only. No images
ReplayRecorded input or network reproduces stateNot started
StressInstance count, cell churn, memory pressureNot started
PerformanceFixed scenes and regression thresholdsNot started. No numbers recorded
SoakHours-long simulation for leaks and desyncNot started

Merge gates from the founding doc: typecheck and lint, unit and integration tests, forbidden-dependency checks, serialization compatibility, measurement for performance-sensitive changes, and an ADR or RFC for cross-cutting architecture changes.

pnpm test runs Vitest against TypeScript source via aliases. pnpm smoke runs the emitted JavaScript. Both are required before calling host boot done. A green unit test does not prove dist/ works.

Do not weaken a test to match a bug. Do not skip a failing test. GPU image tests are not required for a change that never touches pixels, and a null-device run must not be described as a golden image.