argo-cd/ui/jest.setup.js
renovate[bot] 1fde0d075f
chore(deps): update dependency formidable to v2.1.3 [security] (#27233)
Signed-off-by: Blake Pettersson <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Blake Pettersson <[email protected]>
2026-04-09 12:14:05 +02:00

9 lines
367 B
JavaScript

// TODO: This needs to be polyfilled until jest-environment-jsdom decides to pull in a version of jsdom that's >=27.4.0
const {TextEncoder, TextDecoder} = require('util');
if (typeof globalThis.TextEncoder === 'undefined') {
globalThis.TextEncoder = TextEncoder;
}
if (typeof globalThis.TextDecoder === 'undefined') {
globalThis.TextDecoder = TextDecoder;
}