619 Commits

Author SHA1 Message Date
btea
4325ac6793
fix: correctly split the argv string (#7533) 2025-02-27 13:45:23 +01:00
Pengoose
d5765f71b3
fix(expect): Correct generic MatchersObject this type in expect.extend (#7526) 2025-02-20 10:41:23 +09:00
Hiroshi Ogawa
f71004ffa3
fix(spy): clear/reset/restore mocks in stack order (#7499) 2025-02-19 10:06:13 +09: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
Hiroshi Ogawa
03912b43a7
fix: fix getMockedSystemTime for useFakeTimer (#7405) 2025-02-04 14:43:08 +01:00
Hiroshi Ogawa
926ca95469
fix(vite-node): differentiate file url with hash and query (#7365) 2025-02-03 10:57:07 +09:00
Vladimir
dff4406d9c
fix: filter projects eagerly during config resolution (#7313)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2025-01-23 14:00:59 +01:00
Hiroshi Ogawa
fa415059a0
fix(expect): fix expect().resolves/rejects chain typings (#7273) 2025-01-17 10:52:08 +01:00
Vladimir
003c0bef48
fix(watch): don't indicate exit when no matching files (#7246)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2025-01-15 14:43:53 +01: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
Ari Perkkiö
8cab9601bb
fix: colors on forks pool (#7090) 2025-01-14 08:47:32 +02:00
Joaquín Sánchez
a942ea7cc6
chore(ui): fix static ui client types (#7201) 2025-01-12 18:54:50 +01:00
Hiroshi Ogawa
e89c369341
fix: capturePrintError logger duplicate event handlers (#7197) 2025-01-09 09:07:00 +02:00
Arya Emami
8dd2071376
chore: fix various typos (#7054) 2025-01-08 14:21:45 +01:00
chaptergy
3912554b50
fix: allow getMockImplementation to return "once" implementation (#7033) 2025-01-07 19:36:42 +01:00
Lucas Correia
847d322119
fix(browser): only use locator.element on last expect.element attempt (fix #7139) (#7152) 2025-01-03 16:08:35 +01:00
Hiroshi Ogawa
a437b65697
fix(snapshot): preserve white space of toMatchFileSnapshot (#7156) 2025-01-03 13:29:53 +09:00
Mirza Brunjadze
c98b4b1c8b
fix(deps)!: update fake-timers to v14.0.0 (#7097)
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
2024-12-31 11:15:38 +01:00
Hiroshi Ogawa
2a9d67a244
fix(diff): truncate to avoid crash on diff large objects (#7133) 2024-12-27 10:01:01 +01:00
Hiroshi Ogawa
31675e3bad
fix(vite-node): properly normalize file url import (#7087) 2024-12-23 09:40:33 +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
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
Ari Perkkiö
fa754094cb
test: update snapshots (#7055) 2024-12-09 12:39:07 +01:00
Hiroshi Ogawa
f691ad7681
feat(expect): add toSatisfy asymmetric matcher (#7022) 2024-12-09 10:25:56 +01:00
Vladimir
b3e43d0452
fix(spy)!: spyOn reuses mock if method is already spyed on (#6464)
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
2024-12-09 10:24:20 +01:00
Hiroshi Ogawa
2b5c5201dc
feat: diff.printBasicPrototype: false by default (#7043) 2024-12-09 10:19:05 +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
renovate[bot]
04f250fe1c
chore(deps): update eslint packages (#6958)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-12-04 12:41:43 +01:00
Hiroshi Ogawa
a6c9771305
test: fix async assertion warning (#6959) 2024-11-25 08:38:26 +02:00
Hiroshi Ogawa
bd29bcc740
fix(pretty-format): support react 19 (#6909) 2024-11-18 15:08:18 +01:00
Vladimir
171041af5e
refactor: merge TestProject with WorkspaceProject (#6906)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2024-11-18 10:54:09 +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
Vladimir
8d179afcc7
fix(browser): improve source maps when vi.mock is present (#6810) 2024-11-13 17:02:47 +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
Hiroshi Ogawa
7e1faf3da6
fix(vite-node): improve esm check to decide external (#6816) 2024-11-05 11:03:55 +01:00
Hiroshi Ogawa
234674da38
docs: add vi.mocked(..., { partial: true }) example (#6783) 2024-10-31 16:40:55 +01:00
Hiroshi Ogawa
39041ee55d
fix(vitest): silence import analysis warning (#6785) 2024-10-28 11:35:40 +01:00
Hiroshi Ogawa
de74785e05
chore(deps): update @antfu/eslint-config v3.8.0 (#6751) 2024-10-23 13:18:42 +02:00
Vladimir
c0a2f3fc56
refactor: remove barrel utils (#6716) 2024-10-15 13:59:59 +02:00
dalaoshu
a61293e968
fix(expect): correct behavior of toThrowError with empty string parameter (#6710) 2024-10-15 10:59:55 +02:00
Hiroshi Ogawa
7abc4ab6d8
chore(deps): update vue (#6709) 2024-10-15 10:39:38 +02:00
renovate[bot]
d260cef634
chore(deps): update all non-major dependencies (#6360)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-10-14 13:43:10 +02:00
Hiroshi Ogawa
e002758ca2
fix: fix error diff of toBeNaN, toBeUndefined, toBeNull, toBeTruthy, toBeFalsy (#6697) 2024-10-12 14:12:24 +02:00
dsyddall
5e6de2742f
fix(runner): ensure sequential suite overrides sequence.concurrent (#6653)
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
2024-10-12 10:31:47 +09:00
Hiroshi Ogawa
fe7b8aeea6
fix(web-worker): share mocker with main executor (#6623) 2024-10-03 11:29:09 +02:00
Hiroshi Ogawa
d289e7eb39
fix(expect): preserve prototype in toMatchObject diff (#6620) 2024-10-03 08:56:17 +02:00
Vladimir
f4a682d7ac
docs: document how to mock class and its methods (#6615) 2024-10-02 16:28:15 +02:00
Vladimir
8a8d3f0346
fix(vitest): make env.SSR consistent between different pools (#6616) 2024-10-02 16:27:35 +02:00