We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10c21d6 commit 572821eCopy full SHA for 572821e
packages/app/src/sandbox/eval/tests/jest-lite.ts
@@ -122,8 +122,9 @@ export default class TestRunner {
122
const { window: jsdomWindow } = this.dom;
123
const { document: jsdomDocument } = jsdomWindow;
124
125
- // Date is not set correctly on window in JSDOM. This breaks Jest
+ // Set the modules that are not set on JSDOM
126
jsdomWindow.Date = Date;
127
+ jsdomWindow.fetch = fetch;
128
129
return {
130
...jestTestHooks,
0 commit comments