Skip to content
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

Tests: Add jsdom to Jest for browser env testing #151

Open
Egge21M opened this issue Jul 17, 2024 · 1 comment
Open

Tests: Add jsdom to Jest for browser env testing #151

Egge21M opened this issue Jul 17, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Egge21M
Copy link
Collaborator

Egge21M commented Jul 17, 2024

Test cases should be run for both node as well as jsdom environments to ensure the library behaves as expected in the browser.

@Egge21M Egge21M added the enhancement New feature or request label Jul 17, 2024
@Egge21M Egge21M self-assigned this Jul 17, 2024
@Egge21M
Copy link
Collaborator Author

Egge21M commented Jul 17, 2024

Meh... jestjs/jest#11241

Turns out jest's jsdom environment still has some APIs that should not be available in the browser. I guess we can mock those to throw if called

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant