Skip to content

Commit

Permalink
assert stack in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoff committed Oct 24, 2022
1 parent a7c6f79 commit bd269f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react-client/src/__tests__/ReactFlight-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ describe('ReactFlight', () => {
' may provide additional details about the nature of the error.',
);
expect(this.state.error.digest).toContain(this.props.expectedMessage);
expect(this.state.error.stack).toBe(
'Error: ' + this.state.error.message,
);
}
}
render() {
Expand Down

0 comments on commit bd269f0

Please sign in to comment.