37 Commits

Author SHA1 Message Date
Vladimir
5f710182e0
feat!: add promise-based return assertions, do not auto-resolve returned promises (#5749) 2024-05-31 14:46:23 +02:00
Vladimir
6598fba55b
docs: remove version badges (#5727)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2024-05-15 08:44:37 +02:00
Vladimir
e2e0ff46af
feat: add expect.poll utility (#5708) 2024-05-14 20:41:15 +02:00
btea
20357e2e20
docs: add @shikiji/vitepress-twoslash (#5483) 2024-04-08 14:19:12 +02:00
Joshua Horowitz
14ee16dfc8
docs: grammar fix (#5324) 2024-03-02 09:17:23 +02:00
Hiroshi Ogawa
9abef3d004
test: add error equality tests + more warnings in docs (#5253) 2024-02-26 11:52:05 +01:00
Hiroshi Ogawa
8ee59f0d9d
fix(expect): show diff on toContain/toMatch assertion error (#5267) 2024-02-23 10:41:02 +01:00
Maximiliano Kazanski
b48586b51c
docs: fix links and badges error (#5239) 2024-02-20 14:19:33 +01:00
renovate[bot]
7a31a1ae42
chore(deps): update dependency @antfu/eslint-config to v2 (#5153) 2024-02-08 17:33:12 +01:00
Tigran
463bee3846
feat: allow extending toEqual (fix #2875) (#4880)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-01-12 16:41:39 +01:00
Bob Hennessey
21513f0aa1
docs: fix typo of negation in toSatisfy example (#4939) 2024-01-12 10:57:51 +01:00
Vladimir
7ca786570d
docs: use Badge to display versions (#4823) 2024-01-02 13:03:29 +01:00
wzc520pyfm
abe01970dd
docs(expect): fix soft example error (#4712) 2023-12-09 12:24:14 +01:00
Pascal Jufer
cb87f44e76
docs: fix grammar/stylistic issues (#4534)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2023-11-28 13:37:07 +01:00
Zoe Colley
5e07d17b44
docs: remove ableist test example (#4609) 2023-11-28 13:36:33 +01:00
Vladimir
ce84f069d7
feat(expect): toContain can handle classList and Node.contains (#4239) 2023-11-15 18:39:14 +01:00
Hiroshi Ogawa
ac30972674
fix: apply serializer to Error instance for thrown snapshot (#4396)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2023-11-02 15:11:35 +01:00
Vladimir
970038b2d0
docs: remove extra spaces before paragraphs in documentation (#4426) 2023-11-02 15:08:26 +01:00
Lars Salembier
ca6ea7ee7c
docs: added missing falsy values. (#4351) 2023-10-23 11:51:05 +02:00
Dunqing
7f91c6f6f9
feat(expect): support expect.closeTo api (#4260)
Co-authored-by: golebiowskib <bartosz.golebiowski@@ttpsc.pl>
2023-10-07 10:08:46 +02:00
renovate[bot]
c8c1b4a6a3
chore(deps): update all non-major dependencies (#3662)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-06-28 19:55:17 +02:00
Han
8e385bb09e
feat(expect): support expect.unreachable (#3556)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2023-06-16 11:53:49 +02:00
Dunqing
dff19bc268
docs: update expect.soft related documentation (#3535)
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2023-06-15 10:23:21 +02:00
Lyx
77d071a91f
docs(expect): correct code block mistake (#3304) 2023-05-05 07:05:44 +02:00
renovate[bot]
48c4e8c68b
chore(deps): update all non-major dependencies (#3238)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-05-04 08:18:01 +02:00
Vladimir
cf3afe2bea
feat!: move assertion declarations to expect package (#3294) 2023-05-03 18:25:38 +02:00
Vladimir
0c09a40d2b
feat!: update mock implementation to support ESM runtime, introduce "vi.hoisted" (#3258) 2023-04-27 15:04:05 +02:00
renovate[bot]
0f86ff9897
chore(deps): update all non-major dependencies (#2766)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-04-06 16:53:03 +02:00
btea
c51433d074
docs: add chaiConfig note (#3144)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-04-06 15:52:09 +02:00
Vladimir Sheremet
7347179aa4 docs: add Vitest version to toMatchFileSnapshot documentation 2023-04-05 21:23:04 +02:00
Vladimir
313032cdf9
fix: move "mergeConfig" into "vitest/config" and add extension to imports in the documentation (#3139) 2023-04-05 18:39:24 +02:00
Samuel Bodin
74b7ab005a
docs: update extend matcher (#3123)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-04-05 18:38:04 +02:00
Anthony Fu
bdc06dcbc4
feat(snapshot): introduce toMatchFileSnapshot and auto queuing expect promise (#3116) 2023-04-03 16:03:46 +02:00
Ólafur Waage
96da6c10ef
docs: very minor grammar changes in expect.md (#3068) 2023-03-23 15:16:55 +01:00
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