We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 612234e commit ca084a3Copy full SHA for ca084a3
src/app/__tests__/index.test.js
@@ -1,7 +1,8 @@
1
import React from 'react';
2
import ReactDOM from 'react-dom';
3
-import App from './components/App';
+import App from '../components/App';
4
5
it('renders without crashing', () => {
6
- ReactDOM.render(<App />, document.getElementById('root'));
+ const root = document.createElement('root');
7
+ ReactDOM.render(<App />, root);
8
})
0 commit comments