Merge pull request #18234 from backstage/blam/jsdom-env
cli: Add `Request` `Response` `Headers` and `fetch` to `jsdom` environment
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
import '@testing-library/jest-dom';
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { TextDecoder, TextEncoder } from 'util';
|
||||
import 'cross-fetch/polyfill';
|
||||
|
||||
// These are missing from jest-node, so not available on global.
|
||||
Object.defineProperty(global, 'TextEncoder', {
|
||||
|
||||
Reference in New Issue
Block a user