Last active
October 28, 2016 15:40
-
-
Save RobAWilkinson/32a8e4f952986d4e404752adc860b6f8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"scripts": { | |
"start": "node server/index.js", | |
"test": "mocha test --require test/setup.js --compilers js:babel-register", | |
} | |
} |
This file contains hidden or 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
import jsdom from 'jsdom'; | |
global.document = jsdom.jsdom(''); | |
global.window = document.defaultView; | |
global.alert = () => {}; | |
global.navigator = window.navigator; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment