-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(expect): accept array index as number in toHaveProperty (#2808)
* test(expect): add toHaveProperty array index string * test(expect): add toHaveProperty array index number * fix: coerce key to string primitive in expect.toHaveProperty * fix: accept string or number array in toHaveProperty property * test: remove ts-expect-error from toHaveProperty test for array index number * test: expect.toHaveProperty with object key '0' * fix: snapshot for complex object in jest-expect.test.ts * docs: expect.toHaveProperty deep referencing using an array containing the keyPath
- Loading branch information
Showing
4 changed files
with
20 additions
and
5 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
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
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
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