3 Commits

Author SHA1 Message Date
Tom Thumb
b67a5fbdf9
docs: update snapshot section to provide details on how to use with concurrent test (#2733)
Co-authored-by: Tom Thumb <github@asdfjkalsdfla.com>
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-02-14 18:05:21 +01:00
Trivikram Kamat
8705e6b275
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
2023-02-11 15:13:52 +01:00
Vladimir
8b50123014
docs: split API into separate pages (#2635)
* docs: split API into separate pages

* Apply suggestions from code review

Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>

Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-01-16 15:54:03 +01:00