In the test environment I use (VSCode) test errors are added as virtual 'comments' next to the code on the assertion line which threw the error. If the assertion error is multiline, then the newlines are removed to render the error in a single line.
It's hard to give the full impression here in the ticket but all the useful information is pushed off the screen by the horizontal rules, which compounds the verbose message.
Compare...
-----------------------------------{ grandparent: { parent: { child: 'bar' } } }But instead had final store state:----------------------------------{ grandparent: { parent: { child: undefined } } }Jest
To the preferable...
{ grandparent: { parent: { child: 'bar' } } } but instead had final store state: { grandparent: { parent: { child: undefined } } }Jest
In the test environment I use (VSCode) test errors are added as virtual 'comments' next to the code on the assertion line which threw the error. If the assertion error is multiline, then the newlines are removed to render the error in a single line.
The ASCII horizontal rule layout dictated by https://github.com/jfairbank/redux-saga-test-plan/blob/master/src/expectSaga/expectations.js#L119 causes the error to be unreadable.
It's hard to give the full impression here in the ticket but all the useful information is pushed off the screen by the horizontal rules, which compounds the verbose message.
Compare...
To the preferable...
Or the improved message...