266 Commits

Author SHA1 Message Date
Vladimir
65292c3655
docs: update structure (#8625) 2025-11-06 14:59:05 +01:00
Daniel Rentz
c322752dd8
docs: minor improvements for "expect" documentation (#8936) 2025-11-04 18:25:44 +01:00
Vladimir
a1dcffe428
chore: keep length static (#8782) 2025-10-23 19:04:47 +02:00
Vladimir
d4c2b280be
fix(spy): properly inherit implementation's length (#8778) 2025-10-23 17:55:01 +02:00
Chris
c0b250e5c8
feat: add schema validation matchers (#8527) 2025-10-14 10:24:00 +02:00
Vladimir
fe5895d2bb
feat: support expect.assert for type narrowing (#8695) 2025-10-12 13:06:22 +02:00
Vladimir
2b9b34311f
docs: update mocking guide (#8514) 2025-08-31 12:47:43 +02:00
Gabriel
adda7b9dfd
docs: Fix variable typo in expect.md (#8452) 2025-08-19 11:01:56 +03:00
Copilot
7ff9c67ac5
docs: update Testing Types docs to use non-deprecated expect-type API and add toMatchObjectType documentation (#8397)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sheremet-va <16173870+sheremet-va@users.noreply.github.com>
2025-08-09 22:44:27 +02:00
Simon Schick
202d5d6ddc
docs: Mention check of order in array when using toMatchObject (#8396) 2025-08-06 16:38:59 +02:00
Vladimir
61703c9ea7
docs: mention that arguments are not cloned (#8385) 2025-08-04 13:33:15 +02:00
Vladimir
9e412de354
fix!: rewrite spying implementation to make module mocking more intuitive (#8363) 2025-08-01 16:13:07 +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
Matei Trandafir
81d7601e45
feat: add spy option to vi.mockObject (#8285) 2025-07-14 11:02:56 +02:00
renovate[bot]
ad16d46957
chore(deps): update eslint packages (#8124)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2025-07-14 11:01:34 +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
Vladimir
abc0d8273f
fix(spy)!: support spying on classes (#6160) 2025-06-24 16:17:30 +02:00
Micha Huhn
1b29ff60fb
docs: fix typo (#8011) 2025-05-23 17:32:42 +02:00
Ben Durrant
b67d307ded
feat: Explicit Resource Management support in mocked functions (#7927) 2025-05-17 15:34:35 +02:00
berzi
e48c667df3
docs: minor prose improvements to it.for documentation (#7956) 2025-05-11 16:54:35 +09:00
Kyℓe Hensel
b954a14058
chore(snapshots): rename message to hint in method signatures (#7919) 2025-05-06 12:11:55 +09:00
Hiroshi Ogawa
465bdb3d77
feat: add vi.mockObject to automock any object (#7761)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2025-05-05 16:21:42 +02:00
Vladimir
ca743ede68
docs: deprecate old context augmentation and recommend test.extend (#7703) 2025-05-02 14:05:35 +02:00
Elijah Kennedy
9be32fb74d
docs: fix typo (#7886) 2025-04-24 18:20:51 +02:00
Vladimir
bc537a12d8
docs: update onTestFailed first argument (#7857) 2025-04-18 11:18:06 +02:00
Vladimir
ed9ee9d4ba
docs: clarify expect docs (#7853) 2025-04-18 09:14:38 +02:00
Joakim J
37854a3395
docs: Fixed typo under vi.useRealTimers section (#7840) 2025-04-16 16:47:33 +02:00
Vladimir
6373ecc8ba
docs: show both test options examples (#7786) 2025-04-03 10:54:54 +09:00
Vladimir
6adecb9036
feat(vitest): allow conditional context.skip(boolean) (#7659)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2025-03-17 13:05:26 +01:00
Hiroshi Ogawa
ea3d67b03b
feat: allow array element for test.each/for title formatting (#7522) 2025-03-17 13:03:51 +01:00
Ryo Ochiai
df3477076c
feat: Introduce %$ option to add number of the test to its title (#7412) 2025-03-17 13:01:19 +01:00
Hiroshi Ogawa
2d4537fe81
docs: add mockClear/mockReset/mockRestore examples (#7633) 2025-03-11 15:11:15 +01:00
Hiroshi Ogawa
167a98d77c
fix: exclude queueMicrotask from default fake timers to not break node fetch (#7505) 2025-02-18 08:45:06 +02:00
btea
7bfa70cffd
docs: describe waitFor parameters more clearly (#7498) 2025-02-15 14:39:18 +09:00
flx-sta
0f6d6a62a2
docs: add sync-only info to expect.toThrowError tip (#7381) 2025-02-10 17:04:23 +01:00
Hiroshi Ogawa
03912b43a7
fix: fix getMockedSystemTime for useFakeTimer (#7405) 2025-02-04 14:43:08 +01:00
Ryan Waskiewicz
ad8ffac1ea
docs(vi): remove extra comma (#7387) 2025-01-31 08:29:22 +09:00
Hiroshi Ogawa
0ad2860bf6
feat: add describe.for (#7253) 2025-01-15 08:49:42 +01:00
Vladimir
766624abd6
feat: introduce the new reporter API (#7069)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2025-01-14 16:46:44 +01:00
Arya Emami
8dd2071376
chore: fix various typos (#7054) 2025-01-08 14:21:45 +01:00
Vladimir
3341fb58d0
docs: clarify that imports are not available in vi.hoisted (#7190) 2025-01-07 17:17:32 +01:00
nopeless
b700d26467
docs: fix increasesBy description (#7121) 2024-12-24 11:25:00 +09: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
Gareth Jones
5ba49475dc
docs: remove disruptive comma (#7094) 2024-12-18 08:15:10 +01: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
Vladimir
82c2e24437
feat!: pass down context to test hooks (#7034) 2024-12-05 17:44:03 +01:00
Hiroshi Ogawa
aa1dac3de8
feat(runner)!: support describe(..., { shuffle: boolean }) and inherit from parent suite (#6670) 2024-12-05 16:03:35 +01:00
Joe
db7a888801
feat!: spy.mockReset changes (#6426) 2024-12-05 15:01:06 +01:00