126 Commits

Author SHA1 Message Date
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
6598fba55b
docs: remove version badges (#5727)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2024-05-15 08:44:37 +02:00
Hiroshi Ogawa
222ce44119
feat!(runner): support concurrent suites (#5491) 2024-05-14 19:14:09 +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
Vladimir
fee7d8be9d
docs: fix reference to onTestFailed on the context (#5394) 2024-03-16 21:54:04 +01:00
Maximiliano Kazanski
b48586b51c
docs: fix links and badges error (#5239) 2024-02-20 14:19:33 +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
Vladimir
7ca786570d
docs: use Badge to display versions (#4823) 2024-01-02 13:03:29 +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
dsyddall
c3619c78d8
feat: add test.sequential() api (#4512) 2023-11-16 13:11:58 +01:00
dsyddall
ca168a1402
fix: inherit concurrent/sequential in nested suites (#4482) 2023-11-15 16:43:27 +01:00
Vladimir
970038b2d0
docs: remove extra spaces before paragraphs in documentation (#4426) 2023-11-02 15:08:26 +01:00
Vladimir
5c88d8e582
feat(vitest): allow calling skip dynamically (#3966) 2023-08-16 15:41:41 +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
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
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 Feng
15253890e6
feat(runner): support using function/class as describe/test name (#3497) 2023-06-05 14:26:15 +02:00
samkevin1
7c8f0ba989
feat: add repeat method to tests (#2652) 2023-04-15 13:00:45 +02:00
renovate[bot]
0f86ff9897
chore(deps): update all non-major dependencies (#2766)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-04-06 16:53:03 +02:00
btea
c51433d074
docs: add chaiConfig note (#3144)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-04-06 15:52:09 +02:00
Tom Thumb
b67a5fbdf9
docs: update snapshot section to provide details on how to use with concurrent test (#2733)
Co-authored-by: Tom Thumb <github@asdfjkalsdfla.com>
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-02-14 18:05:21 +01:00
Cue
9a0002be7c
docs: fix broken links (#2739) 2023-02-11 13:47:57 +01:00
Vladimir
8b50123014
docs: split API into separate pages (#2635)
* docs: split API into separate pages

* Apply suggestions from code review

Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>

Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-01-16 15:54:03 +01:00
guillaumeduboc
40187bdbbd
feat: add runAllTimersAsync from sinonjs (#2209)
close https://github.com/vitest-dev/vitest/issues/1804
2023-01-16 09:21:43 +01:00
Tomas Chmelevskij
6145d7bf0d
docs: typo (#2663) 2023-01-14 11:30:07 +01:00
Robbe Claessens
2daf44af2e
docs: add describe.skipIf documentation (#2558)
* add describe.skipIf documentation

* Update index.md

* Apply suggestions from code review

Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>

Co-authored-by: Robbe <robbe@dexxter.be>
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-01-12 10:17:08 +01:00
Drew Powers
532cc11b0c
docs: add info to toThrowError (#2447)
#2262
2023-01-09 22:18:53 +01:00
Vladimir
ce5b4b85b7
docs: update API mocking documentation (#2553)
* docs: update API mocking documentation

* Apply suggestions from code review

Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>

* chore: more docs

* chore: cleanup

Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2022-12-22 16:35:15 +03:00
Anthony Fu
853eeddba8
feat(mock): expose a importOriginal helper to the factory (#2551) 2022-12-22 14:26:05 +01:00
Vladimir Sheremet
881bd7a3d6 chore: add version to "stubEnv" and "unstubAll" 2022-12-16 17:59:44 +01:00
Vladimir
b114d49f50
feat: introduce a native way to set env and globals (#2515)
* feat: introduce a native way to set env and globals

* chore: cleanup

* chore: cleanup

* chore: cleanup

* docs: cleanup
2022-12-16 16:19:17 +01:00
yoho
45c5c45ab0
feat: format test tablename (#2405)
* feat: custom format test.each named

* docs: format title

* chore: update

* chore: update

* chore: update

* chore: upadte

* docs: update

* chore: revert

* chore: update

* feat: object attr getter

* docs: object getter
2022-12-03 10:32:58 +01:00
Wojciech Zieliński
3f963ece2f
docs: replace invalid example for 'toBeString' in 'expectTypeOf' API documentation (#2376) 2022-11-25 09:44:09 +01:00
Vladimir Sheremet
4b21c59527 docs: improve .each information 2022-11-22 18:02:11 +01:00
Vladimir Sheremet
6b977f2dcf docs: update .each information 2022-11-22 13:51:01 +01:00
yoho
f789776546
feat: test.each support string template (#2337) 2022-11-22 08:16:39 +01:00
Vladimir
b1961f0405
feat: add vi.setConfig helper (#2293)
* feat: add `vi.setConfig` helper

* chore: add types for setConfig

* chore: remove SequenceHooks

* test: add tets for changing config
2022-11-08 13:52:25 +01:00
Vladimir
7c7f33d5fc
feat: add typechecking functionality (#2107)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-11-07 23:49:15 +08:00
Jon Ege Ronnenberg
8ac3d47cfe
docs: changed toThrow to toThrowError (#2217) 2022-10-27 23:41:22 +08:00
Ken
94c9143382
docs: vi.runAllTimers example code (#2076) 2022-09-23 18:59:35 +02:00
Mohammad Bagher Abiat
d6c066b196
feat(benchmark): todo mode (#2057) 2022-09-20 11:11:44 +08:00