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

Fix errors when importing the library in node #457

Merged
merged 4 commits into from
Apr 3, 2024
Merged

Conversation

tunetheweb
Copy link
Member

Unit tests in v4 are broken since merging #442 as it exports a function using self which doesn't exist in node contexts.

@philipwalton
Copy link
Member

philipwalton commented Apr 3, 2024

Gah, can't believe I didn't notice the failing unit tests. This could also impact anyone running the code in node SSR, so we should fix ASAP.

src/lib/whenIdle.ts Outdated Show resolved Hide resolved
@philipwalton philipwalton merged commit 91d2748 into v4 Apr 3, 2024
2 checks passed
@tunetheweb tunetheweb deleted the fix-unit-tests branch April 3, 2024 23:11
@philipwalton philipwalton changed the title Fix unit tests broken in v4 Fix errors when importing the library in node Apr 5, 2024
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.

None yet

2 participants