You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use a jest.config.ts file to configure Jest as laid out in the Configuring Jest page, then when I run tests I get the following error:
β Test suite failed to run
evalmachine.<anonymous>:1
globalThis
^
ReferenceError: globalThis is not defined
at evalmachine.<anonymous>:1:1
at setupWindow (node_modules/jsdom/lib/jsdom/browser/Window.js:111:55)
at new Window (node_modules/jsdom/lib/jsdom/browser/Window.js:223:3)
at exports.createWindow (node_modules/jsdom/lib/jsdom/browser/Window.js:95:10)
at new JSDOM (node_modules/jsdom/lib/api.js:36:20)
Switching this to a jest.config.js file or moving the config into package.json fixes this.
I have ts-node version 9.1.1 installed in my package.json file.
I wonder if this is because I'm using asdf as my Node version manager and/or because I'm using Node 10.14.2.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
π Bug Report
If I use a
jest.config.ts
file to configure Jest as laid out in the Configuring Jest page, then when I run tests I get the following error:Switching this to a
jest.config.js
file or moving the config intopackage.json
fixes this.I have
ts-node
version9.1.1
installed in mypackage.json
file.I wonder if this is because I'm using asdf as my Node version manager and/or because I'm using Node
10.14.2
.envinfo
The text was updated successfully, but these errors were encountered: