We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In a Jest test I'm writing I need to initialize jsdom (just for that specific test).
The problem is that doing:
// init jsdom here import library from 'umdLibrary';
The umdLibrary that requires window will blow up because window is not yet defined when imported, but it's needed when used.
umdLibrary
window
How can this be solved?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In a Jest test I'm writing I need to initialize jsdom (just for that specific test).
The problem is that doing:
The
umdLibrary
that requireswindow
will blow up becausewindow
is not yet defined when imported, but it's needed when used.How can this be solved?
The text was updated successfully, but these errors were encountered: