summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYordis Prieto <[email protected]>2025-07-29 12:30:39 -0400
committerGitHub <[email protected]>2025-07-29 11:30:39 -0500
commit68ae0d107c023560dd9ccf31521dbf8b250418f2 (patch)
tree296b067cf946020578b91c76cdc199c1046d473d
parentdf63008a94df9d0ae4e4747e83b7b2489a0a66f0 (diff)
downloadopencode-68ae0d107c023560dd9ccf31521dbf8b250418f2.tar.gz
opencode-68ae0d107c023560dd9ccf31521dbf8b250418f2.zip
fix: improve handling of global File object in uploads tests (#1394)
-rw-r--r--packages/sdk/tests/uploads.test.ts3
1 files changed, 0 insertions, 3 deletions
diff --git a/packages/sdk/tests/uploads.test.ts b/packages/sdk/tests/uploads.test.ts
index 562ebdfc1..00f85a000 100644
--- a/packages/sdk/tests/uploads.test.ts
+++ b/packages/sdk/tests/uploads.test.ts
@@ -78,8 +78,6 @@ describe('missing File error message', () => {
let prevNodeFile: unknown;
beforeEach(() => {
// The file shim captures the global File object when it's first imported.
- // Reset modules before each test so we can test the error thrown when it's undefined.
- jest.resetModules();
const buffer = require('node:buffer');
// @ts-ignore
prevGlobalFile = globalThis.File;
@@ -93,7 +91,6 @@ describe('missing File error message', () => {
// @ts-ignore
globalThis.File = prevGlobalFile;
require('node:buffer').File = prevNodeFile;
- jest.resetModules();
});
test('is thrown', async () => {