-
-
Save TheSavior/5d27820a1f9f2815475c64153aeaf3c1 to your computer and use it in GitHub Desktop.
Use jsdom to set the document global
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global.document = jsdom.jsdom('<div class="foo">my content</div>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment