Merge pull request #18234 from backstage/blam/jsdom-env

cli: Add `Request` `Response` `Headers` and `fetch` to `jsdom` environment
This commit is contained in:
Fredrik Adelöw
2023-06-20 10:40:26 +02:00
committed by GitHub
128 changed files with 25 additions and 186 deletions
-1
View File
@@ -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', {