From 9af042263f7c6e66b4c1402d2f6fc81250c6ce97 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Mon, 27 Nov 2017 22:32:57 +0000 Subject: [PATCH] Unmount the App in the default test (#3511) --- 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); });