206 Commits

Author SHA1 Message Date
btea
a6479cd7af
docs: bench Options type add throws description (#6695) 2024-10-12 14:13:14 +02:00
Vladimir
1bacfeab38
docs: clarify expect.toMatchFileSnapshot (#6610) 2024-10-02 12:56:06 +02:00
Vladimir
5267d4e99b
docs: clarify vi.setSystemTime (#6605) 2024-10-01 16:04:48 +02:00
Vladimir
87232420eb
docs: clarify 2024-09-23 21:23:37 +02:00
Vladimir
0b4da69e11
fix: userEvent works consistently between providers (#6480) 2024-09-12 13:49:15 +02:00
Juan Sanchez
c3b2757cd3
feat(vitest): allow env to be stubbed to undefined (#6359)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-09-03 11:22:20 +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
Vladimir
95f0203f27
feat(mocker): introduce @vitest/mocker package, allow { spy: true } instead of a factory (#6289) 2024-08-21 17:17:27 +02:00
Benjamin Devine
8ff6356059
feat(vitest): add vi.advanceTimersToNextFrame (#6347)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-08-15 10:38:44 +02:00
Sung Ye In
f5e0b9877f
feat(vitest): add return type and promisable mockFactory (#6139)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-08-12 16:14:12 +02:00
Kamil Ogórek
5d542035ac
docs: Update common-errors to include dynamic import aliases (#6227) 2024-08-09 16:42:42 +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 Sheremet
febca74f7d
docs: add Promise types 2024-07-31 13:37:59 +02:00
Vladimir
57d23cec43
docs: fix inconsistencies, remove low informative twoslash examples (#6200) 2024-07-23 14:52:21 +02:00
Vladimir
7012f8c12a
docs: add env documentation (#6063) 2024-07-09 11:54:49 +02:00
Vladimir
3b31a56d53
feat(spy): collect mock.contexts (#5955) 2024-06-24 10:06:27 +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
Hiroshi Ogawa
c238072fdf
feat(runner): implement test.for (#5861)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-06-11 11:58:58 +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
7b2f64cfa3
feat: implement module mocking in browser mode (#5765) 2024-05-31 11:19:38 +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
Hiroshi Ogawa
222ce44119
feat!(runner): support concurrent suites (#5491) 2024-05-14 19:14:09 +02:00
Vladimir
a99a14c1cc
feat: allow import statement as vi.mock path for better IDE support (#5690) 2024-05-09 13:19:38 +02:00
Vladimir
23f29cea64
fix: always run onTestFinished in reverse order (#5598) 2024-04-23 16:45:26 +02:00
Vladimir
ba5c93e16c
docs: fix Badge display (#5539) 2024-04-22 10:05:56 +02:00
btea
20357e2e20
docs: add @shikiji/vitepress-twoslash (#5483) 2024-04-08 14:19:12 +02:00
Reece Dunham
d8a434a4cc
docs: Fix minor typos (#5427) 2024-04-02 10:49:26 +02:00
Hiroshi Ogawa
2e8e05e642
docs: add default for fakeTimers.toFake (#5197)
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-03-26 15:28:19 +01:00
Vladimir
fee7d8be9d
docs: fix reference to onTestFailed on the context (#5394) 2024-03-16 21:54:04 +01: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
Willie Ho
28f22b96a2
docs: add documentation for assert API (#4242) (#5124)
Co-authored-by: 김상두 <puki4416@gmail.com>
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-02-20 14:19:54 +01:00
Maximiliano Kazanski
b48586b51c
docs: fix links and badges error (#5239) 2024-02-20 14:19:33 +01:00
Hong Xu
cad08ee19b
docs: add config param to useFakeTimer (#5213) 2024-02-16 09:45:20 +01:00
Vladimir
7d9b1fb023
feat(vitest): "test" accepts options object as the second parameter (#5142) 2024-02-15 12:51:39 +01:00
renovate[bot]
7a31a1ae42
chore(deps): update dependency @antfu/eslint-config to v2 (#5153) 2024-02-08 17:33:12 +01:00
Vladimir
6f5b42b7a8
feat(vitest): add onTestFinished hook (#5128) 2024-02-07 11:35:17 +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
Huyen Nguyen
d1905bdde7
docs: improve phrasing of a sentence in the vi.mock section (#4672) 2023-12-06 10:20:53 +01:00
dsyddall
64c3ec74f7
docs(api): add docs for describe.runIf (#4536) 2023-11-29 10:31:06 +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
0a14dd81fb
docs: mention --typecheck flag in docs (#4566) 2023-11-22 13:01:02 +01:00