Repository navigation
Commit d4b6520
committed
test(elysia): move vi.unstubAllGlobals to afterEach
Per review feedback: unstubbing inline at the end of the test means it is
skipped if an assertion above it fails, leaking the stubbed `Bun` global
into later tests. Move it into the existing `afterEach` so cleanup always
runs.1 parent a46b72e commit d4b6520
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | | - | |
121 | | - | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| |||
0 commit comments