diff --git a/_templates_/component/%name%.test.js.ejs b/_templates_/component/%name%.test.js.ejs new file mode 100644 index 0000000..415a8f0 --- /dev/null +++ b/_templates_/component/%name%.test.js.ejs @@ -0,0 +1,21 @@ +import React from 'react'; +import ReactDOM from 'react-dom'; + +import <%=Name%>Component from './<%=name%>.jsx'; + +describe('<<%=Name%>Component />', () => { + + beforeEach(() => { + container = document.createElement('div'); + document.body.appendChild(container); + }); + + afterEach(() => { + document.body.removeChild(container); + container = null; + }); + + it('renders without crashing', () => { + ReactDOM.render(<<%=Name%>Component />, container); + }); +}); \ No newline at end of file