-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
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
File Reader #1413
Labels
bug
Something isn't working
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I am running into issues with FileReader when running my jest tests.
This happens when I reference happy-dom jest-environment.
testEnvironment: '@happy-dom/jest-environment',
I get following error running a test for a pure function:
the funcrion I am testing:
To Reproduce
Steps to reproduce the behavior:
testEnvironment: '@happy-dom/jest-environment'
in your test setup.Expected behavior
FileReader should have a readAsDataURL function.
Screenshots
If applicable, add screenshots to help explain your problem.
Device:
Additional context
I am working with an Angular project writing jest tests for util functions.
The text was updated successfully, but these errors were encountered: