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

Use UMD with JSDOM? #84

Open
FezVrasta opened this issue Oct 20, 2016 · 0 comments
Open

Use UMD with JSDOM? #84

FezVrasta opened this issue Oct 20, 2016 · 0 comments

Comments

@FezVrasta
Copy link

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.

How can this be solved?

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

No branches or pull requests

1 participant