From 81b04c8edc9eb9f3f545c93aad4189b20c5d0c20 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Mon, 27 Nov 2017 22:18:10 +0000 Subject: [PATCH] Unmount the App in the default test --- packages/react-scripts/template/src/App.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-scripts/template/src/App.test.js b/packages/react-scripts/template/src/App.test.js index b84af98d720..a754b201bf9 100644 --- a/packages/react-scripts/template/src/App.test.js +++ b/packages/react-scripts/template/src/App.test.js @@ -5,4 +5,5 @@ import App from './App'; it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render(, div); + ReactDOM.unmountComponentAtNode(div); });