Skip to content

Fix browser test in Node10 environment #6

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

Merged
merged 1 commit into from
May 25, 2023

Conversation

bigmontz
Copy link

The window mock was broken because it miss Symbol, Date and other global definitions. Set the window as globalThis and then define the navigator in it solves the issue.

A proper way of solving the issue will be use jsdom, however this plugin doesn't work in Node10.

Also fixed an issue with timers getting hanging in some situations. The issue was catched by browser test with --detectOpenHandles.

The window mock was broken because it miss `Symbol`, `Date` and other global definitions.
Set the window as `globalThis` and then define the navigator in it solves the issue.

A proper way of solving the issue will be use `jsdom`, however this plugin doesn't work in Node10.

Also fixed an issue with timers getting hanging in some situations. The issue was catched by browser test with `--detectOpenHandles`.
@ConorNeo ConorNeo merged commit 9672614 into ConorNeo:bolt-agent May 25, 2023
@bigmontz bigmontz deleted the bolt-agent branch May 25, 2023 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants