TextEncoder is not defined
nikgun1984 opened this issue · comments
Nick Gundobin commented
After upgrading to jest29.5 from jest27, i am getting the following error: "ReferenceError: TextEncoder is not defined". I imported TextEncoder from utils but it still shows the same error. > 10 | import { JSDOM } from 'jsdom'
Matan Borenkraout commented
This looks like an issue in jest and not something we have a way to fix. There are some workarounds already available so I'm closing this one.
Thanks.
Carlos Esteban Lopez Jaramillo commented
This is not an issue in jest, it's in jsdom, been like that for years and we can only work around it until it's fixed.
jsdom/jsdom#2524