Merge pull request #18234 from backstage/blam/jsdom-env
cli: Add `Request` `Response` `Headers` and `fetch` to `jsdom` environment
This commit is contained in:
@@ -46,7 +46,6 @@
|
||||
"@types/jest": "^28.1.3",
|
||||
"@types/node": "^16.11.26",
|
||||
"@types/react": "^16.13.1 || ^17.0.0",
|
||||
"cross-fetch": "^3.1.5",
|
||||
"msw": "^1.0.0"
|
||||
},
|
||||
"files": [
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
import '@testing-library/jest-dom';
|
||||
import 'cross-fetch/polyfill';
|
||||
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { TextEncoder } from 'util';
|
||||
|
||||
Reference in New Issue
Block a user