Test gaps found in the Oct 7 code review: fakes, snapshot-only e2e assertions and fixed sleeps
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- testing
Research direction
Start with the high-severity bug issues #159–#178 and the named test entry points: tests/e2e/chat.test.ts, tests/e2e/panels.test.ts, retry.test.ts, and session.test.ts. Compare the fakes and assertions with the real dependency contracts, then prioritize failure-path tests in the affected modules. Done means the listed gaps are covered, e2e checks verify rendered state, and fixed sleeps are replaced with condition waits.
Written by the indexing model from the issue text.
Description
The 2026-10-07 code review found several tests that pass without checking what they are meant to check. Bug-specific tests are listed in each bug's issue (#159–#178); this issue covers the patterns.
Problems
- Fakes that behave better than the real dependency:
- The fake sandbox helper exits after sending an error, which hid #162.
retry.test.tsonly feeds hand-built error objects and never passes a real SDK stream error throughrunTurn, which hid #173.- The browser tests use fake timers.
- E2E checks main-process state, not the screen:
waitForintests/e2e/chat.test.ts:44-57and similar pollschat:snapshotfrom the main process. Main/renderer desync such as #161 is invisible to the suite. - Fixed sleeps:
tests/e2e/panels.test.ts:46(waitForTimeout(1500)),documentation-visuals.test.ts:99,171,179,198,long_run.test.ts:100, and many 100–200 ms polls. - Failure paths with no tests:
session.test.tsonly covers keep-alive: no stop/resume/resumable, stop during compaction, oreditUndoneand plan-mode notes.- No test where
chat_manager.open()fails. - MCP: no server dying,
stop()during a connect, connect timeout, or tool-name collisions. - Shell: no foreground timeout, output cap, or leftover-process test.
- Code index: no failure mid-update and no concurrent callers.
- No corrupt settings or project files.
- Rust helper: no recovery with one failing record.
- Renderer:
app.ts,transcript.ts,panels.tsanddialogs.tshave no unit tests.
Fix
- Make fakes match the real contract (the helper stays alive until stdin closes; a stream error comes wrapped as the SDK wraps it).
- Add DOM-level assertions to e2e tests that cover state sync.
- Replace fixed sleeps with condition waits.
- Add the failure-path tests above, starting with the modules the high-severity bugs live in.
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 2
- Avg merge
- 5h 52m
- Merged PRs (30d)
- 18
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PierrunoYT/patch
-
enhancement priority: low security severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
PierrunoYT/patch#208 ·
Maintainers usually reply within 1 day
-
enhancement platform: windows priority: low severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
PierrunoYT/patch#198 ·
Maintainers usually reply within 1 day
-
bug priority: low severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
PierrunoYT/patch#190 ·
Maintainers usually reply within 1 day
-
Unbounded waits: revokeProjectGrant has no timeout, and timed-out browser waiters are never removedOpenbug priority: low severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PierrunoYT/patch#188 ·
Maintainers usually reply within 1 day
-
bug priority: medium severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
PierrunoYT/patch#179 ·
Maintainers usually reply within 1 day
All issues in PierrunoYT/patch
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
farbenmeer/tapi#531 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
naver/egjs-flicking#971 ·
-
Renderer treats a sub-pixel width difference as a resize, which cancels the `motion()` entranceOpen
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Tenant
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
MTES-MCT/Dossier-Facile-Frontend#2061 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
backnotprop/plannotator#1784 ·
Maintainers usually reply within 1 day