-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expect: Improve report when assertion fails, part 4 (#7241)
* expect: Improve report when assertion fails, part 4 * Added snapshot test for toHaveLength expected length * Fix prettier lint error * Made improvements requested by thymikee * Make improvements suggested by SimenB * Update CHANGELOG.md * Save the change to resolve the other merge conflict * Deleted assertion_counts.test.js.snap * Replace cannot with must not * Fix prettier lint error
- Loading branch information
1 parent
b21ab21
commit 21733c3
Showing
14 changed files
with
793 additions
and
542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
packages/expect/src/__tests__/__snapshots__/assertionCounts.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`.hasAssertions() throws if expected is not undefined 1`] = ` | ||
"<dim>expect(</><red>received</><dim>)[.not].hasAssertions(</><dim>)</> | ||
<bold>Matcher error</>: <green>expected</> value must be omitted or undefined | ||
Expected has type: number | ||
Expected has value: <green>2</>" | ||
`; |
Oops, something went wrong.