Skip to content

Commit 291be6c

Browse files
gaearonPavel Zhytko
authored and
Pavel Zhytko
committed
Unmount the App in the default test (facebook#3511)
1 parent 660f465 commit 291be6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-scripts/template/src/App.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ import App from './App';
55
it('renders without crashing', () => {
66
const div = document.createElement('div');
77
ReactDOM.render(<App />, div);
8+
ReactDOM.unmountComponentAtNode(div);
89
});

0 commit comments

Comments
 (0)