Commit 487b327
fix: make test context http.fetch use globalThis.fetch for proper mocking
The test context's http.fetch was hardcoded to return an empty Response(),
preventing proper mocking of globalThis.fetch in tests. Now it delegates
to globalThis.fetch so test mocks can properly intercept HTTP calls.
Signed-off-by: betterclever <[email protected]>
Amp-Thread-ID: https://ampcode.com/threads/T-019c1a9e-e1f3-755b-99e7-5a617c149f9e
Co-authored-by: Amp <[email protected]>1 parent a5891a6 commit 487b327
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments