Skip to content

Commit 7b240e0

Browse files
Merge pull request #209 from wednesday-solutions/copilot/fix-9614d828-fdff-4572-b420-ab9b140bf8b4
Update React to 19.1.1 and Node.js compatibility to >=20.0.0
2 parents 81f51ee + 05fbb53 commit 7b240e0

File tree

8 files changed

+18
-20
lines changed

8 files changed

+18
-20
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/dubnium
1+
lts/iron

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exports[`<Clickable /> component tests should render and match the snapshot 1`]
88
data-testid="clickable"
99
>
1010
<p
11-
class="css-lh9t18 egtqi0h0"
11+
class="css-eswc4a egtqi0h0"
1212
data-testid="t"
1313
>
1414
Repository List

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ exports[`<ProtectedRoute /> should render and match the snapshot 1`] = `
1010
class="css-1cnh6jp e666d1v2"
1111
>
1212
<p
13-
class="e666d1v1 css-gnuwwn egtqi0h0"
13+
class="e666d1v1 css-16gj8bq egtqi0h0"
1414
data-testid="redirect"
1515
>
1616
Go to Storybook
@@ -37,7 +37,7 @@ exports[`<ProtectedRoute /> should render and match the snapshot 1`] = `
3737
class="MuiDivider-root MuiDivider-fullWidth MuiDivider-light css-b2j1b7-MuiDivider-root"
3838
/>
3939
<p
40-
class="css-darbe1 egtqi0h0"
40+
class="css-1u0bpvi egtqi0h0"
4141
data-testid="t"
4242
>
4343
Get details of repositories
@@ -50,7 +50,6 @@ exports[`<ProtectedRoute /> should render and match the snapshot 1`] = `
5050
data-testid="search-bar"
5151
placeholder="wednesday-solutions/react-template"
5252
type="text"
53-
value=""
5453
/>
5554
<div
5655
class="MuiInputAdornment-root MuiInputAdornment-positionEnd css-1laqsz7-MuiInputAdornment-root"
@@ -115,7 +114,7 @@ exports[`<ProtectedRoute /> should render and match the snapshot 1`] = `
115114
class="MuiDivider-root MuiDivider-fullWidth MuiDivider-light css-b2j1b7-MuiDivider-root"
116115
/>
117116
<p
118-
class="css-lh9t18 egtqi0h0"
117+
class="css-eswc4a egtqi0h0"
119118
data-testid="default-message"
120119
>
121120
Search for a repository by entering it's name in the search box

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ exports[`<RepoCard /> should render and match the snapshot 1`] = `
88
data-testid="repo-card"
99
>
1010
<p
11-
class="css-lh9t18 egtqi0h0"
11+
class="css-eswc4a egtqi0h0"
1212
data-testid="name-unavailable"
1313
>
1414
Repository name is unavailable
1515
</p>
1616
<p
17-
class="css-lh9t18 egtqi0h0"
17+
class="css-eswc4a egtqi0h0"
1818
data-testid="fullName-unavailable"
1919
>
2020
Repository full name unavaiable
2121
</p>
2222
<p
23-
class="css-lh9t18 egtqi0h0"
23+
class="css-eswc4a egtqi0h0"
2424
data-testid="stargazers-unavaiable"
2525
>
2626
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="css-lh9t18 egtqi0h0"
7+
class="css-eswc4a egtqi0h0"
88
data-testid="t"
99
/>
1010
</div>

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ exports[`<HomeContainer /> tests should render and match the snapshot 1`] = `
1010
class="css-1cnh6jp e666d1v2"
1111
>
1212
<p
13-
class="e666d1v1 css-gnuwwn egtqi0h0"
13+
class="e666d1v1 css-16gj8bq egtqi0h0"
1414
data-testid="redirect"
1515
>
1616
Go to Storybook
@@ -37,7 +37,7 @@ exports[`<HomeContainer /> tests should render and match the snapshot 1`] = `
3737
class="MuiDivider-root MuiDivider-fullWidth MuiDivider-light css-b2j1b7-MuiDivider-root"
3838
/>
3939
<p
40-
class="css-darbe1 egtqi0h0"
40+
class="css-1u0bpvi egtqi0h0"
4141
data-testid="t"
4242
>
4343
Get details of repositories
@@ -50,7 +50,6 @@ exports[`<HomeContainer /> tests should render and match the snapshot 1`] = `
5050
data-testid="search-bar"
5151
placeholder="wednesday-solutions/react-template"
5252
type="text"
53-
value=""
5453
/>
5554
<div
5655
class="MuiInputAdornment-root MuiInputAdornment-positionEnd css-1laqsz7-MuiInputAdornment-root"
@@ -115,7 +114,7 @@ exports[`<HomeContainer /> tests should render and match the snapshot 1`] = `
115114
class="MuiDivider-root MuiDivider-fullWidth MuiDivider-light css-b2j1b7-MuiDivider-root"
116115
/>
117116
<p
118-
class="css-lh9t18 egtqi0h0"
117+
class="css-eswc4a egtqi0h0"
119118
data-testid="default-message"
120119
>
121120
Search for a repository by entering it's name in the search box

app/translations/en.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"engines": {
1717
"npm": ">=5",
18-
"node": ">=17.9.1"
18+
"node": ">=20.0.0"
1919
},
2020
"author": "Mac",
2121
"homepage": "http://wednesday-solutions.github.io/react-template",
@@ -115,9 +115,9 @@
115115
"less-loader": "7.3.0",
116116
"lodash-es": "4.17.21",
117117
"minimist": "1.2.3",
118-
"react": "18.2.0",
119-
"react-dom": "18.2.0",
120-
"react-redux": "7.0.2",
118+
"react": "^19.1.1",
119+
"react-dom": "^19.1.1",
120+
"react-redux": "^9.2.0",
121121
"react-router-dom": "^5.1.2",
122122
"redux": "4.0.1",
123123
"redux-injectors": "^1.3.0",
@@ -163,7 +163,7 @@
163163
"@storybook/test-runner": "^0.9.3",
164164
"@storybook/testing-library": "^0.0.13",
165165
"@testing-library/jest-dom": "^5.16.4",
166-
"@testing-library/react": "^13.3.0",
166+
"@testing-library/react": "^16.3.0",
167167
"add-asset-html-webpack-plugin": "^5.0.2",
168168
"axe-playwright": "^1.1.12",
169169
"babel-core": "7.0.0-bridge.0",

0 commit comments

Comments
 (0)