Skip to content

Commit 9a164e1

Browse files
Brooooooklynclaude
andcommitted
Clear the warn spy between runs in the platform warnings test
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent b5f573a commit 9a164e1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/void/test/unit/list-command.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ describe('runListCommand', () => {
205205
const warn = vi.spyOn(log, 'warn').mockImplementation(() => {
206206
warnedAt.push(capture.output().length);
207207
});
208+
// The prompts module survives vi.resetModules(), so a second spyOn
209+
// returns the first spy with its earlier calls.
210+
warn.mockClear();
208211
await runListCommand(root);
209212
const out = capture.output();
210213
capture.restore();

0 commit comments

Comments
 (0)