We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? Please describe.
On the global scope, TextEncoder & TextDecoder are available (see MDN).
TextEncoder
TextDecoder
But when I run this code:
const h = require('happy-dom'); const w = new h.Window(); w.TextEncoder // undefined
This poses an issue for tests running in Jest with @happy-dom/jest-environment, testing code using TextEncoder
@happy-dom/jest-environment
Describe the solution you'd like Implement those 2 globals by exposing those from node:util
node:util
Describe alternatives you've considered N/A
Additional context N/A
The text was updated successfully, but these errors were encountered:
fix: [capricorn86#1611] Implement window.TextEncoder & window.TextDec…
6ed7b4d
…oder
fix: [#1611] Implement window.TextEncoder & window.TextDecoder
7914b54
Co-authored-by: David Ortner <[email protected]>
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
On the global scope,
TextEncoder
&TextDecoder
are available (see MDN).But when I run this code:
This poses an issue for tests running in Jest with
@happy-dom/jest-environment
, testing code usingTextEncoder
Describe the solution you'd like
Implement those 2 globals by exposing those from
node:util
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: