Files
deploy/ui/jest.setup.js
T
Jonathan Winters 845919a353 Merge branch 'master' into react-19
# Conflicts:
#	.github/workflows/ci-build.yaml
#	ui/eslint.config.mjs
#	ui/jest.config.js
#	ui/jest.setup.js
#	ui/package.json
#	ui/src/app/applications/components/application-create-panel/application-create-panel.tsx
#	ui/src/app/applications/components/application-details/application-details.tsx
#	ui/src/app/applications/components/resource-details/resource-details.tsx
#	ui/src/app/settings/components/repo-details/repo-details.tsx
#	ui/src/app/tsconfig.json
#	ui/src/app/webpack.config.js
#	ui/yarn.lock


Signed-off-by: Jonathan Winters <[email protected]>
2026-05-05 15:06:31 -07:00

13 lines
450 B
JavaScript

require('@testing-library/jest-dom');
globalThis.IS_REACT_ACT_ENVIRONMENT = true;
// 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;
}