Skip to content

Commit 0275564

Browse files
author
Jack Pope
committed
Update error msg
1 parent 3a74c31 commit 0275564

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-test-renderer/__tests__/shallow-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('shallow', () => {
1616
// eslint-disable-next-line no-new
1717
new ReactShallowRenderer();
1818
}).toThrow(
19-
'react-test-renderer is deprecated. To use react-test-renderer/shallow, import react-shallow-renderer directly. See https://react.dev/warnings/react-test-renderer'
19+
'react-test-renderer/shallow has been removed. See https://react.dev/warnings/react-test-renderer.'
2020
);
2121
});
2222
});

packages/react-test-renderer/npm/shallow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
function ReactShallowRenderer() {
44
throw new Error(
5-
'react-test-renderer is deprecated. To use react-test-renderer/shallow, import react-shallow-renderer directly. See https://react.dev/warnings/react-test-renderer'
5+
'react-test-renderer/shallow has been removed. See https://react.dev/warnings/react-test-renderer.'
66
);
77
}
88

0 commit comments

Comments
 (0)