fix(jsdom): cumulative Jest updates with support for TextEncoder/TextDecoder (#8111)

This commit is contained in:
Tim Lai
2022-07-20 13:15:06 -07:00
committed by GitHub
parent 516ea6a7d4
commit b89e88579c
4 changed files with 6471 additions and 1588 deletions

4
test/unit/jest-shim.js Normal file
View File

@@ -0,0 +1,4 @@
import { TextDecoder, TextEncoder } from "util"
global.TextDecoder = TextDecoder
global.TextEncoder = TextEncoder