Commit 02e341f
fix(cloud-tests): bun-compat vi.mock + drop useless continue
direct-wallet-payments.integration.test.ts used Vitest's `vi.mock(id, async (importOriginal) => {...})` callback form. bun-test's vi shim doesn't pass importOriginal — calling it throws TypeError and crashes the unit suite before any test runs. Switched all four affected mocks to `async () => { const actual = (await vi.importActual("X")) as typeof import("X"); ... }` which works under both Vitest and bun-test.
payout-fork.integration.test.ts had a useless `continue` at the end of a try/catch body (biome noUselessContinue). Removed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2894572 commit 02e341f
2 files changed
Lines changed: 6 additions & 7 deletions
File tree
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
| 155 | + | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
| 174 | + | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
| |||
0 commit comments