-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See: jsdom/jsdom#2961
- Loading branch information
Gerard Brull
committed
May 13, 2020
1 parent
b9caeb2
commit c8d4995
Showing
2 changed files
with
276 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
import 'jest-styled-components'; | ||
import '@testing-library/jest-dom/extend-expect'; | ||
import 'jest-axe/extend-expect'; | ||
|
||
// polyfill globalThis for older nodes | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore | ||
// @ts-ignore | ||
globalThis = global; | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const { JSDOM } = require('jsdom'); | ||
new JSDOM('', { runScripts: 'dangerously' }); |
Oops, something went wrong.