fix(undiciRequest): file uploading (#11320)

* fix(undiciRequest): file uploading

* fix: different approach

* fix: revert to the previous approach

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Almeida
2025-12-03 14:40:15 +00:00
committed by GitHub
parent 633fdd8f28
commit 0aaba0305f
6 changed files with 19 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ beforeEach(() => {
setGlobalDispatcher(mockAgent); // enabled the mock client to intercept requests
mockPool = mockAgent.get('https://discord.com');
api.setAgent(mockAgent);
});
afterEach(async () => {