Skip to content

Commit aabd5ad

Browse files
chore: update packages versions
1 parent e96e390 commit aabd5ad

File tree

14 files changed

+554
-289
lines changed

14 files changed

+554
-289
lines changed

app/app.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// Needed for redux-saga es6 generator support
99
// Import all the third party stuff
1010
import React from 'react';
11-
import ReactDOM from 'react-dom';
11+
import { createRoot } from 'react-dom/client';
1212
import { Router } from 'react-router-dom';
1313
import { Provider } from 'react-redux';
1414
import { PersistGate } from 'redux-persist/integration/react';
@@ -37,9 +37,9 @@ import { translationMessages } from './i18n';
3737
const initialState = {};
3838
const { store, persistor } = configureStore(initialState, history);
3939
const MOUNT_NODE = document.getElementById('app');
40-
40+
const root = createRoot(MOUNT_NODE);
4141
const render = (messages) => {
42-
ReactDOM.render(
42+
root.render(
4343
<ErrorBoundary>
4444
<Provider store={store}>
4545
<PersistGate loading={null} persistor={persistor}>
@@ -52,8 +52,7 @@ const render = (messages) => {
5252
</LanguageProvider>
5353
</PersistGate>
5454
</Provider>
55-
</ErrorBoundary>,
56-
MOUNT_NODE
55+
</ErrorBoundary>
5756
);
5857
};
5958

@@ -62,7 +61,8 @@ if (module.hot) {
6261
// modules.hot.accept does not accept dynamic dependencies,
6362
// have to be constants at compile-time
6463
module.hot.accept(['./i18n', 'containers/App'], () => {
65-
ReactDOM.unmountComponentAtNode(MOUNT_NODE);
64+
// ReactDOM.unmountComponentAtNode(MOUNT_NODE);
65+
root.unmount();
6666
render(translationMessages);
6767
});
6868
}

app/components/Clickable/tests/__snapshots__/index.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ exports[`<Clickable /> component tests should render and match the snapshot 1`]
44
<body>
55
<div>
66
<div
7-
class="Clickable__StyledClickable-sc-19lp5om-0 grlVIv"
7+
class="Clickable__StyledClickable-sc-19lp5om-0 gXlmQJ"
88
data-testid="clickable"
99
>
1010
<p
11-
class="T__StyledText-gjlic1-0 kYcyRq"
11+
class="T__StyledText-gjlic1-0 jOByUY"
1212
data-testid="t"
1313
>
1414
Repository List

app/components/Clickable/tests/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import React from 'react';
8-
import { fireEvent } from '@testing-library/dom';
8+
import { fireEvent } from '@testing-library/react';
99
import { renderWithIntl } from '@utils/testUtils';
1010
import Clickable from '../index';
1111

app/components/Header/tests/__snapshots__/index.test.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ exports[`<Header /> should render and match the snapshot 1`] = `
44
<body>
55
<div>
66
<header
7-
class="ant-layout-header Header__StyledHeader-wp2jxc-0 jpfWFm"
7+
class="ant-layout-header Header__StyledHeader-wp2jxc-0 kCacbk"
88
data-testid="header"
99
intl="[object Object]"
1010
>
1111
<img
1212
alt="logo"
13-
class="Header__Logo-wp2jxc-1 bDHyGP"
13+
class="Header__Logo-wp2jxc-1 exNzgN"
1414
src="IMAGE_MOCK"
1515
/>
1616
<p
17-
class="T__StyledText-gjlic1-0 kYTaGb Header__Title-wp2jxc-2 cqzBIP"
17+
class="T__StyledText-gjlic1-0 guBozt Header__Title-wp2jxc-2 OSRax"
1818
data-testid="t"
1919
>
2020
Wednesday Solutions

app/components/ProtectedRoute/tests/__snapshots__/index.test.js.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ exports[`<ProtectedRoute /> should render and match the snapshot 1`] = `
44
<body>
55
<div>
66
<div
7-
class="HomeContainer__Container-l0s8pp-1 haKSMo"
7+
class="HomeContainer__Container-l0s8pp-1 iQEnjC"
88
>
99
<div
10-
class="HomeContainer__RightContent-l0s8pp-2 bvlZvV"
10+
class="HomeContainer__RightContent-l0s8pp-2 iWJscD"
1111
>
1212
<p
13-
class="T__StyledText-gjlic1-0 kYcyRq HomeContainer__StyledT-l0s8pp-3 fYCmLU"
13+
class="T__StyledText-gjlic1-0 jOByUY HomeContainer__StyledT-l0s8pp-3 iOEXgS"
1414
data-testid="redirect"
1515
>
1616
Go to Storybook
1717
</p>
1818
</div>
1919
<div
20-
class="ant-card ant-card-bordered HomeContainer__CustomCard-l0s8pp-0 kPJcqJ"
20+
class="ant-card ant-card-bordered HomeContainer__CustomCard-l0s8pp-0 liNnZz"
2121
maxwidth="500"
2222
>
2323
<div
@@ -37,7 +37,7 @@ exports[`<ProtectedRoute /> should render and match the snapshot 1`] = `
3737
class="ant-card-body"
3838
>
3939
<p
40-
class="T__StyledText-gjlic1-0 demndm"
40+
class="T__StyledText-gjlic1-0 gGweRc"
4141
data-testid="t"
4242
>
4343
Get details of repositories
@@ -87,7 +87,7 @@ exports[`<ProtectedRoute /> should render and match the snapshot 1`] = `
8787
</div>
8888
</div>
8989
<div
90-
class="ant-card ant-card-bordered HomeContainer__CustomCard-l0s8pp-0 gkbTPT"
90+
class="ant-card ant-card-bordered HomeContainer__CustomCard-l0s8pp-0 fCikHd"
9191
color="grey"
9292
>
9393
<div
@@ -107,7 +107,7 @@ exports[`<ProtectedRoute /> should render and match the snapshot 1`] = `
107107
class="ant-card-body"
108108
>
109109
<p
110-
class="T__StyledText-gjlic1-0 kYcyRq"
110+
class="T__StyledText-gjlic1-0 jOByUY"
111111
data-testid="default-message"
112112
>
113113
Search for a repository by entering it's name in the search box

app/components/RepoCard/tests/__snapshots__/index.test.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ exports[`<RepoCard /> should render and match the snapshot 1`] = `
44
<body>
55
<div>
66
<div
7-
class="ant-card ant-card-bordered RepoCard__CustomCard-sc-3wf6pv-0 iiVuom"
7+
class="ant-card ant-card-bordered RepoCard__CustomCard-sc-3wf6pv-0 hBtxvU"
88
data-testid="repo-card"
99
>
1010
<div
1111
class="ant-card-body"
1212
>
1313
<p
14-
class="T__StyledText-gjlic1-0 kYcyRq"
14+
class="T__StyledText-gjlic1-0 jOByUY"
1515
data-testid="name-unavailable"
1616
>
1717
Repository name is unavailable
1818
</p>
1919
<p
20-
class="T__StyledText-gjlic1-0 kYcyRq"
20+
class="T__StyledText-gjlic1-0 jOByUY"
2121
data-testid="fullName-unavailable"
2222
>
2323
Repository full name unavaiable
2424
</p>
2525
<p
26-
class="T__StyledText-gjlic1-0 kYcyRq"
26+
class="T__StyledText-gjlic1-0 jOByUY"
2727
data-testid="stargazers-unavaiable"
2828
>
2929
Repository stars are unavaiable

app/components/T/tests/__snapshots__/index.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`<T /> component tests should render and match the snapshot 1`] = `
44
<body>
55
<div>
66
<p
7-
class="T__StyledText-gjlic1-0 kYcyRq"
7+
class="T__StyledText-gjlic1-0 jOByUY"
88
data-testid="t"
99
/>
1010
</div>

app/containers/App/tests/__snapshots__/index.test.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
exports[`<App /> container tests should render and match the snapshot 1`] = `
44
<div>
55
<header
6-
class="ant-layout-header Header__StyledHeader-wp2jxc-0 jpfWFm"
6+
class="ant-layout-header Header__StyledHeader-wp2jxc-0 kCacbk"
77
data-testid="header"
88
intl="[object Object]"
99
>
1010
<img
1111
alt="logo"
12-
class="Header__Logo-wp2jxc-1 bDHyGP"
12+
class="Header__Logo-wp2jxc-1 exNzgN"
1313
src="IMAGE_MOCK"
1414
/>
1515
<p
16-
class="T__StyledText-gjlic1-0 kYTaGb Header__Title-wp2jxc-2 cqzBIP"
16+
class="T__StyledText-gjlic1-0 guBozt Header__Title-wp2jxc-2 OSRax"
1717
data-testid="t"
1818
>
1919
Wednesday Solutions

app/containers/HomeContainer/tests/__snapshots__/index.test.js.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ exports[`<HomeContainer /> tests should render and match the snapshot 1`] = `
44
<body>
55
<div>
66
<div
7-
class="HomeContainer__Container-l0s8pp-1 haKSMo"
7+
class="HomeContainer__Container-l0s8pp-1 iQEnjC"
88
>
99
<div
10-
class="HomeContainer__RightContent-l0s8pp-2 bvlZvV"
10+
class="HomeContainer__RightContent-l0s8pp-2 iWJscD"
1111
>
1212
<p
13-
class="T__StyledText-gjlic1-0 kYcyRq HomeContainer__StyledT-l0s8pp-3 fYCmLU"
13+
class="T__StyledText-gjlic1-0 jOByUY HomeContainer__StyledT-l0s8pp-3 iOEXgS"
1414
data-testid="redirect"
1515
>
1616
Go to Storybook
1717
</p>
1818
</div>
1919
<div
20-
class="ant-card ant-card-bordered HomeContainer__CustomCard-l0s8pp-0 kPJcqJ"
20+
class="ant-card ant-card-bordered HomeContainer__CustomCard-l0s8pp-0 liNnZz"
2121
maxwidth="500"
2222
>
2323
<div
@@ -37,7 +37,7 @@ exports[`<HomeContainer /> tests should render and match the snapshot 1`] = `
3737
class="ant-card-body"
3838
>
3939
<p
40-
class="T__StyledText-gjlic1-0 demndm"
40+
class="T__StyledText-gjlic1-0 gGweRc"
4141
data-testid="t"
4242
>
4343
Get details of repositories
@@ -87,7 +87,7 @@ exports[`<HomeContainer /> tests should render and match the snapshot 1`] = `
8787
</div>
8888
</div>
8989
<div
90-
class="ant-card ant-card-bordered HomeContainer__CustomCard-l0s8pp-0 gkbTPT"
90+
class="ant-card ant-card-bordered HomeContainer__CustomCard-l0s8pp-0 fCikHd"
9191
color="grey"
9292
>
9393
<div
@@ -107,7 +107,7 @@ exports[`<HomeContainer /> tests should render and match the snapshot 1`] = `
107107
class="ant-card-body"
108108
>
109109
<p
110-
class="T__StyledText-gjlic1-0 kYcyRq"
110+
class="T__StyledText-gjlic1-0 jOByUY"
111111
data-testid="default-message"
112112
>
113113
Search for a repository by entering it's name in the search box

app/containers/LanguageProvider/tests/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { render } from 'react-testing-library';
2+
import { render } from '@testing-library/react';
33
import { FormattedMessage, defineMessages } from 'react-intl';
44
import { Provider } from 'react-redux';
55
import { browserHistory } from 'react-router-dom';

0 commit comments

Comments
 (0)