- Command:
npm test(ornpx vitest run) - Build Command:
npm run build - Lint Command:
npm run lint - TypeScript Check:
npx tsc --noEmit - Expected: All tests pass with exit code 0, 0 build errors, 0 lint warnings.
| Tier | Count | Description |
|---|---|---|
| 1. Feature Coverage | 170 | Core step sequences for all 9 sorting, 7 searching, 7 data structures, 3 graphs |
| 2. Boundary & Corner Cases | 65 | Empty arrays, single elements, duplicates, negative values, sorted, reverse, missing search targets |
| 3. Playback Engine Transitions | 49 | Step forward, step backward (restoring prior state), reset (restoring initial input), play/pause, speed scaling |
| 4. Workspace & UI Components | 36 | WorkspaceLayout, active pseudocode line sync, multi-language code inspector, UI primitives |
| Total Passed Tests | 320 | 100% Pass Rate across 8 Vitest Test Suites |
src/components/ui/ui.test.tsx(13 tests) — Button, Slider, Badge, Tabs, Input, Modalsrc/__tests__/playback.test.ts(16 tests) — Deterministic playback engine, state transitions, scrubbing, timingsrc/__tests__/inputValidation.test.ts(33 tests) — Delimiters, range, bounds, negatives, search targets, graph/tree validatorssrc/__tests__/workspace.test.tsx(29 tests) — WorkspaceLayout, active pseudocode line sync, code inspector, controls docksrc/__tests__/sorting.test.ts(84 tests) — Bubble, Selection, Insertion, Merge, Quick, Heap, Counting, Radix, Bucket + edge casessrc/__tests__/searching.test.ts(86 tests) — Linear, Binary, Jump, Interpolation, Exponential, Ternary, Fibonacci + boundary casessrc/__tests__/dataStructures.test.ts(44 tests) — Linked List, Doubly Linked List, Stack, Queue, BST, B-Tree, Hash Tablesrc/__tests__/graphs.test.ts(15 tests) — BFS, DFS, Dijkstra shortest path algorithm with edge relaxation
npm run lint: Completed with 0 errors and 0 warnings.npm run build: Completed successfully, generating 35 static routes.npx tsc --noEmit: 0 TypeScript compilation errors.