170 Commits

Author SHA1 Message Date
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
dsyddall
c3619c78d8
feat: add test.sequential() api (#4512) 2023-11-16 13:11:58 +01:00
Vladimir
ce84f069d7
feat(expect): toContain can handle classList and Node.contains (#4239) 2023-11-15 18:39:14 +01:00
dsyddall
ca168a1402
fix: inherit concurrent/sequential in nested suites (#4482) 2023-11-15 16:43:27 +01:00
Vladimir
cc19117d30
chore: migrate to flat eslint config (#4472) 2023-11-11 08:07:39 +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
Vladimir
eda66e8639
docs: prefer .js extension in the documentation (#4411) 2023-10-31 14:39:43 +01:00
Vladimir
d40b3a5813
refactor!: remove EnhancedSpy type, deprecate SpyInstance, improve mocks and vi documentation (#4400)
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-10-31 12:20:41 +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
Ari Perkkiö
98fe3d5540
fix: nextTick mocking error message to mention correct config option (#4215) 2023-10-02 16:45:53 +02:00
Vladimir Sheremet
f8dacb2c2c docs: have waitFor/waitUtil on the top level 2023-09-27 11:33:55 +02:00
Ajay
84f442f7dd
docs: vi.doMock includes that it mocks subsequent dynamic imports (#4169) 2023-09-27 09:44:54 +02:00
Ari Perkkiö
8b4a44ad16
feat!: support multiple parallel child_process (#3925) 2023-09-27 09:39:26 +02:00
Anthony Blond
1f0249ee22
docs: remove reference to vi.restoreCurrentDate() from doc (does not exist) (#4160) 2023-09-22 11:00:46 +02:00
Vladimir Sheremet
d284e12425 chore: improve waitFor/waitUntil examples 2023-09-16 10:20:07 +02:00
Dunqing
e0ac97cf6e
feat(vitest): support vi.waitUntil method (#4129)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-09-16 10:11:00 +02:00
Dunqing
d79cb44bf8
feat(vitest): support vi.waitFor method (#4113)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2023-09-14 10:16:35 +02:00
Vladimir Sheremet
b75f91d265 docs: remove outdated statement 2023-09-13 10:14:58 +02:00
Vladimir
5c88d8e582
feat(vitest): allow calling skip dynamically (#3966) 2023-08-16 15:41:41 +02:00
Arthur Datsenko-Boos
5a07cffa55
docs: Fix sentence inside vi.md (#3897)
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-08-15 17:48:59 +02:00
Vladimir Sheremet
dbf0e97953 docs: fix return type for vi.fn 2023-08-14 11:49:54 +02:00
Joris
b7ce1959bd
Import "describe" in sample code (#3801) 2023-07-25 12:24:45 +02:00
Han
8693449b41
feat: support describe.sequential (#3771)
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-07-19 17:14:48 +02:00
Jacob Beck
2f2e80f703
docs: describe mock result behavior with promises (#3635) 2023-07-11 09:50:44 +02:00
Han
a749a6c01f
feat: support use function/class as bench name (#3711) 2023-07-03 09:59:47 +02:00
Han
1621cc6365
feat: support accessing other fixtures in fixture function (#3651) 2023-07-03 09:59:22 +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
Vladimir
47383eb78a
docs: specify Vitest version for test.extend (#3683) 2023-06-27 13:41:27 +02:00
Dunqing
6d146d1690
fix(runner): make the default value of retry and repeats 0 (#3638) 2023-06-22 16:02:08 +02:00
Han
2db1a737f1
feat(runner): support test.extend (#3554) 2023-06-19 10:19:39 +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
Han Feng
15253890e6
feat(runner): support using function/class as describe/test name (#3497) 2023-06-05 14:26:15 +02:00
Alessandro Di Dio
b3602bcc4d
feat(dev): add moduleDirectories option to the vitest config (#3337)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-05-30 10:13:10 +02:00
Vladimir Sheremet
fde628ad3d chore(docs): fix vi.mock example 2023-05-09 15:49:35 +02:00