Ben Hong
aa22f7979e
docs: improve spyOn example with a contextual example ( #3185 )
2023-04-12 20:18:16 +02:00
Vladimir
b9d1a97599
feat!: add workspace support ( #3103 )
2023-04-09 15:12:26 +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
Vladimir Sheremet
7347179aa4
docs: add Vitest version to toMatchFileSnapshot documentation
2023-04-05 21:23:04 +02:00
Vladimir
313032cdf9
fix: move "mergeConfig" into "vitest/config" and add extension to imports in the documentation ( #3139 )
2023-04-05 18:39:24 +02:00
Samuel Bodin
74b7ab005a
docs: update extend matcher ( #3123 )
...
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-04-05 18:38:04 +02:00
Mohammad Bagher Abiat
affc6d82d6
docs: add the motivation section for more context ( #3104 )
...
Co-authored-by: Christian Bromann <git@bromann.dev>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-04-05 10:05:02 +02:00
Anthony Fu
bdc06dcbc4
feat(snapshot): introduce toMatchFileSnapshot and auto queuing expect promise ( #3116 )
2023-04-03 16:03:46 +02:00
Vladimir
2f1dc5ced3
feat!: remove tinyspy internal properties on Vitest spies ( #3069 )
2023-03-29 14:14:48 +02:00
jonathan-graf
09fec8464b
docs: elaboration for resetModules ( #3059 )
...
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2023-03-27 12:11:39 +02:00
Ólafur Waage
96da6c10ef
docs: very minor grammar changes in expect.md ( #3068 )
2023-03-23 15:16:55 +01:00
Obada Khalili
610b1d46da
feat(spy): implement mock.withImplementation API ( #2835 )
...
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-02-24 20:23:20 +01:00
Wenzhe Wang
65d71b9e97
fix: cleanup last mocked cache when call vi.doMock ( #2872 )
...
fix https://github.com/vitest-dev/vitest/issues/2870
2023-02-22 12:52:43 +01: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
Trivikram Kamat
8705e6b275
fix(expect): accept array index as number in toHaveProperty ( #2808 )
...
* test(expect): add toHaveProperty array index string
* test(expect): add toHaveProperty array index number
* fix: coerce key to string primitive in expect.toHaveProperty
* fix: accept string or number array in toHaveProperty property
* test: remove ts-expect-error from toHaveProperty test for array index number
* test: expect.toHaveProperty with object key '0'
* fix: snapshot for complex object in jest-expect.test.ts
* docs: expect.toHaveProperty deep referencing using an array containing the keyPath
2023-02-11 15:13:52 +01:00
Cue
9a0002be7c
docs: fix broken links ( #2739 )
2023-02-11 13:47:57 +01:00
Tan Li Hau
445c7b3569
docs: fix broken links to vi ( #2832 )
2023-02-08 11:48:36 +01:00
Lioness100
2f87505ffd
docs: fix typos ( #2815 )
2023-02-08 11:30:35 +01:00
Arek Tywonek
439c24365b
docs: typo ( #2757 )
2023-01-27 14:12:26 +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
Mohammad Bagher Abiat
119932f0c7
feat(benchmark): only mode ( #2039 )
2022-09-18 10:56:43 +08:00
Bartosz Golebiowski
6ed7c2418b
fix: propagate describe options ( #2025 )
...
close : #1998
Co-authored-by: golebiowskib <bartosz.golebiowski@@ttpsc.pl>
2022-09-13 12:37:03 +03:00
Vladimir
f00a1ac228
docs: add information about benchmarking ( #2001 )
2022-09-10 15:54:55 +08:00
Kid
0c2e323ee1
docs: fix vi.fn signature ( #2014 )
2022-09-09 10:49:30 +03:00
Marshall Thompson
a98c845487
docs: grammar ( #1974 )
...
grammar fix
2022-09-05 09:57:13 +08:00
Anthony Fu
456079ea73
feat: introduce retry option for tests ( #1929 )
2022-09-04 10:53:43 +03:00
vaakian X
35bb461b6e
docs: fix missing word ( #1949 )
2022-09-01 13:31:49 +03:00
Lioness100
f13e54f096
chore: fix typos ( #1857 )
...
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-08-15 18:38:15 +00:00
Dragomir Ivanov
10232f3f5b
docs: improve (describe|test).only description ( #1826 )
...
* docs: improve (describe|test).only description
* Apply suggestions from code review
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2022-08-11 09:22:10 +03:00
Vladimir
5141e0b9ba
feat: allow using todo/skip/concurrent with each ( #1802 )
2022-08-05 19:07:58 +03:00
jfrs
c18f0af542
feat(types): add partial flag to mocked TypeScript helper ( #1739 ) ( #1742 )
...
Co-authored-by: jfrs <jfrs@jfrs.me>
2022-08-02 10:11:55 +03:00