Commit b4a6c72
committed
fix(test): also clear spy history in afterEach teardown
Add mockClear() calls in teardownStdioTest before mockRestore() to
ensure spy call history is cleaned up both before and after each test.
This provides more robust test isolation for Node.js 24 where spy
state may persist across test boundaries.1 parent 19bab41 commit b4a6c72
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
| |||
0 commit comments