60 Commits

Author SHA1 Message Date
Gabriel
adda7b9dfd
docs: Fix variable typo in expect.md (#8452) 2025-08-19 11:01:56 +03:00
Simon Schick
202d5d6ddc
docs: Mention check of order in array when using toMatchObject (#8396) 2025-08-06 16:38:59 +02:00
Daniel Sidhion
b8cb62104e
docs: clarify condition on expect.anything (#8356) 2025-07-29 14:54:48 +02:00
btea
66a403acdc
docs: update poll parameter type (#8187) 2025-07-14 15:10:56 +02:00
Shinobu Hayashi
eeec501de4
feat(expect): support toBeNullable expect function to check provided value is nullish (#8294)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2025-07-14 11:00:21 +02:00
Kyℓe Hensel
b954a14058
chore(snapshots): rename message to hint in method signatures (#7919) 2025-05-06 12:11:55 +09:00
Vladimir
ed9ee9d4ba
docs: clarify expect docs (#7853) 2025-04-18 09:14:38 +02:00
flx-sta
0f6d6a62a2
docs: add sync-only info to expect.toThrowError tip (#7381) 2025-02-10 17:04:23 +01:00
Arya Emami
8dd2071376
chore: fix various typos (#7054) 2025-01-08 14:21:45 +01:00
Chris
3d742b2b52
feat(expect): add toBeOneOf matcher (#6974)
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
2024-12-20 16:55:34 +09:00
Hiroshi Ogawa
100230e915
fix(expect)!: check more properties for error equality (#5876)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-12-10 09:36:07 +01:00
Vladimir
3c18ecf720
docs: replace Vitest 2.2 mentions (#7025) 2024-12-06 09:46:48 +01:00
Estéban
85e6f99f07
feat(expect): add toHaveBeenCalledAfter and toHaveBeenCalledBefore utility (#6056)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-11-13 18:01:45 +01:00
Jacob Erdman
ff66206ae8
feat(expect): add toHaveBeenCalledExactlyOnceWith expect matcher (#6894)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-11-13 17:01:01 +01:00
Vladimir
93b67c24b1
fix: throw an error and a warning if .poll, .element, .rejects/.resolves, and locator.* weren't awaited (#6877) 2024-11-13 13:16:24 +01:00
Vladimir
1bacfeab38
docs: clarify expect.toMatchFileSnapshot (#6610) 2024-10-02 12:56:06 +02:00
Vladimir
0b4da69e11
fix: userEvent works consistently between providers (#6480) 2024-09-12 13:49:15 +02:00
renovate[bot]
84a066af0e
chore(deps): update dependency @antfu/eslint-config to v3 (#6435)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-09-02 10:16:37 +02:00
James Glenn
0453c5a8d3
docs: Address typos in expect.md (#6290) 2024-08-06 19:38:21 +02:00
Gaspar Dip
e6cce09f58
docs: fix typo in expect.md (#6282) 2024-08-06 09:42:43 +02:00
Tim Weißenfels
a7be50dbce
docs: Fix argument name in expect.md (#6254) 2024-08-01 13:44:01 +02:00
Vladimir
57d23cec43
docs: fix inconsistencies, remove low informative twoslash examples (#6200) 2024-07-23 14:52:21 +02:00
Vladimir
471cf97b0c
chore: always require curly braces (#5885)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2024-06-16 18:10:10 +02:00
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