| name | restore-internals-seams-in-finally-blocks-after-each-test |
| description | restore _internals seams in finally blocks after each test |
| generated_from_knowledge | ["5ef666bf-7c7b-4990-b652-20782bf9c866"] |
| source_knowledge_ids | ["5ef666bf-7c7b-4990-b652-20782bf9c866"] |
| generated_at | 2026-07-14T05:31:50.176Z |
| confidence | 0.6 |
| status | active |
| version | 1 |
| skill_origin | generated |
restore _internals seams in finally blocks after each test
Trigger
- (no explicit trigger metadata; cluster derived from category/tags)
Required Procedure
- restore _internals seams in finally blocks after each test
- verify seam restoration in afterEach
Forbidden Shortcuts
Delegation Template
When delegating a task affected by this skill, include:
SKILLS: file:.opencode/skills/generated/restore-internals-seams-in-finally-blocks-after-each-test/SKILL.md
Reviewer Checks
- Verify each required action above appears in the diff.
Test Engineer Checks
- Add or update tests covering the trigger condition and the forbidden shortcut.
Source Knowledge IDs
- 5ef666bf-7c7b-4990-b652-20782bf9c866 — When testing error-handling paths via _internals DI seams, always restore original implementations in a finally block to prevent cross-test pollution that causes cascading failures in Bun's shared test-runner process