When testing a function that uses either the TextEncoder or the TextDecoder I get: I am using jsdom, so why is this not working? Answer While it should be bundled with jsdom, it isn’t with jsdom 16. Therefore you can polyfill like so:
When testing a function that uses either the TextEncoder or the TextDecoder I get: I am using jsdom, so why is this not working? Answer While it should be bundled with jsdom, it isn’t with jsdom 16. Therefore you can polyfill like so: