atsid/generator-ats-node-webapp

View on GitHub
generators/client-react/templates/client/common.spec/spec.helpers.js

Summary

Maintainability
A
0 mins
Test Coverage
const jsdom = require('jsdom');

// A super simple DOM ready for React to render into
// Store this DOM and the window in global scope ready for React to access
global.document = jsdom.jsdom('<!doctype html><html><body></body></html>');
global.window = document.defaultView;
global.navigator = window.navigator;

module.exports = {};