You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: progress tests pass on Bun by injecting context directly
Replace vi.mock-based context override with direct ctx parameter
injection in createStoreProgress/createRestoreProgress. The vi.mock
for getCliContext was not being applied in Bun's module loader,
causing pipe-mode detection to return a no-op tracker.
Also adds CLAUDE.md with zero-tolerance test policy.
**Zero tolerance for failing tests.** Pre-existing failures are not acceptable. If any test fails on any supported runtime (Node, Bun, Deno), it must be fixed before proceeding. Never skip, ignore, or defer a failing test.
6
+
7
+
## Supported Runtimes
8
+
9
+
All code must pass on all three runtimes:
10
+
- Node.js 22.x (primary)
11
+
- Bun (via Docker: `docker compose run --build --rm test-bun`)
12
+
- Deno (via Docker: `docker compose run --build --rm test-deno`)
13
+
14
+
## Test Commands
15
+
16
+
-`npm test` — unit tests (Node)
17
+
-`npx eslint .` — lint (0 errors required)
18
+
-`docker compose run --build --rm test-bun bunx vitest run test/unit` — Bun unit tests
19
+
-`docker compose run --build --rm test-deno deno run -A npm:vitest run test/unit` — Deno unit tests
20
+
-`docker compose run --build --rm test-bun bunx vitest run test/integration` — Bun integration tests
21
+
-`docker compose run --build --rm test-deno deno run -A npm:vitest run test/integration` — Deno integration tests
22
+
23
+
## Release Checklist
24
+
25
+
Before tagging a release, ALL of the following must pass:
0 commit comments