Skip to content

Commit

Permalink
fixed error reported when component fails to mount
Browse files Browse the repository at this point in the history
  • Loading branch information
vzaidman committed Dec 28, 2024
1 parent 7b6fc5c commit 8cb3d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test('dont swallow errors', () => {
);
};

expect(mountBrokenComponent).toThrow(/(Cannot read property 'propTypes' of null|Cannot read properties of null \(reading 'propTypes'\))/);
expect(mountBrokenComponent).toThrow(/expected a string.*but got.*null/);

global.flushConsoleOutput()
.map(output => ({
Expand Down

0 comments on commit 8cb3d36

Please sign in to comment.