Fixes issue where test would fail due to TextEncoder issues. Specifically:
const "pg" = require(pg) // or something of that sort
Description
Include TextEncoder and TextDecoder as global var for jest.
Lost this support in the jsdom with V16.
jsdom is a pure-JavaScript implementation of many web standards, notably the WHATWG DOM and HTML Standards, for use with Node.js. In general, the goal of the project is to emulate enough of a subset of a web browser to be useful for testing and scraping real-world web applications.
For the node20-update-aa branch, this allowed an additional 45 tests (630 to 675) to pass.
Checklist:
[ ] I have manually tested my changes on desktop and mobile
[ ] The test suite passes locally with my changes
[ ] If my change is a UI change, I have attached a screenshot to the description section of this pull request
Fixes # (issue)
Fixes issue where test would fail due to TextEncoder issues. Specifically:
Description
Include TextEncoder and TextDecoder as global var for jest. Lost this support in the jsdom with V16. jsdom is a pure-JavaScript implementation of many web standards, notably the WHATWG DOM and HTML Standards, for use with Node.js. In general, the goal of the project is to emulate enough of a subset of a web browser to be useful for testing and scraping real-world web applications.
For the node20-update-aa branch, this allowed an additional 45 tests (630 to 675) to pass.
Checklist: