Skip to content

Commit bd269f0

Browse files
committed
assert stack in tests
1 parent a7c6f79 commit bd269f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/react-client/src/__tests__/ReactFlight-test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ describe('ReactFlight', () => {
5757
' may provide additional details about the nature of the error.',
5858
);
5959
expect(this.state.error.digest).toContain(this.props.expectedMessage);
60+
expect(this.state.error.stack).toBe(
61+
'Error: ' + this.state.error.message,
62+
);
6063
}
6164
}
6265
render() {

0 commit comments

Comments
 (0)