Skip to content

Commit 67c7966

Browse files
committed
Update warnings
1 parent 1e2ad2d commit 67c7966

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/__tests__/render.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ describe('render API', () => {
218218
render(<div />, {legacyRoot: true})
219219
}).toErrorDev(
220220
[
221-
"Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot",
221+
"Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://react.dev/link/switch-to-createroot",
222222
],
223223
{withoutStack: true},
224224
)
@@ -232,7 +232,7 @@ describe('render API', () => {
232232
render(ui, {container, hydrate: true, legacyRoot: true})
233233
}).toErrorDev(
234234
[
235-
"Warning: ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot",
235+
"Warning: ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://react.dev/link/switch-to-createroot",
236236
],
237237
{withoutStack: true},
238238
)

src/__tests__/renderHook.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ test('legacyRoot uses legacy ReactDOM.render', () => {
7979
).result
8080
}).toErrorDev(
8181
[
82-
"Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot",
82+
"Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://react.dev/link/switch-to-createroot",
8383
],
8484
{withoutStack: true},
8585
)

0 commit comments

Comments
 (0)