|
@@ -1,9 +1,10 @@
|
|
|
import React from 'react';
|
|
|
import ReactDOM from 'react-dom';
|
|
|
+import { act } from 'react-dom/test-utils';
|
|
|
import App from './App';
|
|
|
|
|
|
it('renders without crashing', () => {
|
|
|
const div = document.createElement('div');
|
|
|
- ReactDOM.render(<App />, div);
|
|
|
+ act(() => { ReactDOM.render(<App />, div) });
|
|
|
ReactDOM.unmountComponentAtNode(div);
|
|
|
});
|