Commit 10bb779
authored
expect: Improve report when assertion fails, part 6 (#7621)
* expect: Improve report when assertion fails, part 6
* Fix flow errors
* Move new function to reduce noise in diff
* Update CHANGELOG.md
* Convert ANSI codes in promise/async snapshots
* Rewrite promise/async snapshot tests
* Reduce length of labels and handle non-error values
* Add tests for non-error values
* Fix prettier lint error
* Update ExpectAPI.md
* Improve grammar in ExpectAPI.md
* Delete an exception from Received function did not throw
* Correct typo in ExpectAPI.md
* Correct type and report for non-error class1 parent eae9d45 commit 10bb779
File tree
6 files changed
+559
-312
lines changed- docs
- packages/expect/src
- __tests__
- __snapshots__
6 files changed
+559
-312
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1168 | 1168 | | |
1169 | 1169 | | |
1170 | 1170 | | |
1171 | | - | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
1172 | 1179 | | |
1173 | 1180 | | |
1174 | 1181 | | |
| |||
1193 | 1200 | | |
1194 | 1201 | | |
1195 | 1202 | | |
| 1203 | + | |
1196 | 1204 | | |
1197 | 1205 | | |
1198 | 1206 | | |
| |||
0 commit comments