-
Notifications
You must be signed in to change notification settings - Fork 923
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
"ReferenceError: FontFace is not defined" during test runs #5546
Labels
Comments
Forgot to mention that the Font Loading API works perfectly fine outside of the tests, I am able to tag and export components that use it just fine, but when put in the tests it throws those errors. |
resolved in new envs api |
@NitsanCohen770 Can you point me towards how you solved this? I'm running into what sounds like the same issue on a different project: jsdom / happy-dom don't support APIs like FontFace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Running
bit test
throws aReferenceError: FontFace is not defined
error when testing a component that uses the CSS Font Loading API.Steps to Reproduce
Expected Behavior
Successful run of the unit tests
Screenshots, exceptions and logs
` ReferenceError: FontFace is not defined
The text was updated successfully, but these errors were encountered: