187 Commits

Author SHA1 Message Date
Vladimir
15829489eb
feat: stubGlobals helper (#1079) 2022-04-03 00:10:50 +08:00
Jannis Morgenstern
7b732bdcc5
chore: typo (#1056) 2022-03-31 14:21:10 +08:00
Dewey Ou
7588227069
docs: typos (#1048) 2022-03-28 14:00:22 +08:00
Lo
f7b81d032a
docs: review MockInstance in docs/api/index.md (#1047) 2022-03-28 12:42:42 +08:00
alexzhang1030
255a7138a0
docs: fix typo (#1044) 2022-03-28 10:13:23 +08:00
Vladimir
b6b9113e62
docs: add spy assertions (#1040)
* docs: add spy assertions to docs

* chore: ignore ltex rules
2022-03-27 19:11:52 +08:00
Dewey Ou
4210c39122
feat: add parameter for test name of each (#1031)
* feat: add parameter for test name of each api

* fix: each test name escaped case

* fix: add a judgment
2022-03-26 20:12:06 +08:00
Lo
05b3b77726
docs: review Vi in docs/api/index.md (#1030) 2022-03-26 15:03:27 +08:00
Caleb Waldner
ec40047b4e
docs: updates for vi.mock in the API section (#1021)
* Update docs api mocks section

* Removed misplaced space

* Update docs/api/index.md

Co-authored-by: Vladimir <sheremet.va@icloud.com>

* Update docs/api/index.md

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

Co-authored-by: Vladimir <sheremet.va@icloud.com>
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2022-03-25 15:03:22 +08:00
jp-liu
f4f26cb3c5
docs: remove redundant description (#1025)
Co-authored-by: jpliu6 <jpliu6@iflytek.com>
2022-03-25 15:01:28 +08:00
Michael Lazarski
772badfbe8
docs: Add test.each and describe.each to the documentation (#1009)
Co-authored-by: Lazarski, Michael (OTD) <michael.lazarski@tchibo.de>
2022-03-23 18:33:58 +08:00
Dewey Ou
5f021e4d28
docs: missing import item in examples (#997) 2022-03-21 18:55:02 +08:00
Kalven Schraut
e3a7ff3c4f
fix(expect): toHaveProperty support array syntax like jest (fix #937) (#938) 2022-03-15 06:20:14 +01:00
Anthony Fu
621300d0a0 chore: lint for md and json 2022-03-08 03:30:59 +08:00
Janosh Riebesell
4858541f36
docs: add svelte-multiselect to projects using Vitest (#867)
* add svelte-multiselect to projects using Vitest

* fix typos

* Update docs/api/index.md

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-02-28 18:21:14 +08:00
Yoshiaki Togami
82b5c19ab3
doc: add it.fails (#831) 2022-02-22 02:03:05 +08:00
Shinigami
5e2324f4bd
feat: add typeof assertion (#762)
Co-authored-by: Vladimir <sheremet-va@users.noreply.github.com>
2022-02-16 14:08:14 +08:00
Yoshiaki Togami
d1df0e0090
feat: support BigInt for jest assertions (#742) 2022-02-13 20:43:01 +01:00
Ev Haus
51d751c795
docs: start migration guide from Jest (#694) 2022-02-13 06:35:27 +01:00
Vladimir
cf30e5a46f
feat!: mocking timers with sinon (#531) 2022-01-23 09:43:00 +03:00
Vladimir
75113c705b
fix: toBe/toEqual/toMatchObject jest compatability (#607)
* fix: toMatchObject compatible with jest

* fix: equal/eql always use jest implementation

* fix: toBe uses Object.is instead of equal to match jest implementation

* fix: toEqual uses jest equal

* fix!: remove asymmetric matchers support for chai assertions

* chore: remove chaiEqual notices

* refactor: rename asymmetricEquals to jestEquals
2022-01-23 09:34:36 +03:00
Vladimir Sheremet
dda62d0af8 feat: vi.mock can be used inside setupFiles to automock libraries 2022-01-17 14:58:58 +03:00
Mitchel van Bever
b66f6dc738
docs: refactor mocking restructure (#441)
* refactor(docs): mocking restructure

* refactor: move mocking docs into its own section

* refactor(wip): moved everything to API, examples incoming

* fix: adhere to indenting + heading syntax fix

* fix: made a list of all `types`

* refactor: show both structures on preview link

* refactor: reverted guide/mocking structure as there is now less content

* fix: adjusted some of the content

* refactor: added use-case facing example for mocking dates

* refactor: added example to function mocking guides section

* refactor(wip): removed `dummy` examples that are still being worked on

* refactor: nav structure for CLI

* fix: added timer example to mock sections

* fix: add simple module mocking example

* chore: code formatting consistency

* refactor: apply code review suggestions in batch

Co-authored-by: Sam Richard <snugug@google.com>

* refactor: mocking functions rewrite

* fix(links): made relative links absolute

* fix(links): made relative links absolute for the api page

* refactor: update module mocking example

* docs: minor fixes

Co-authored-by: Sam Richard <snugug@google.com>
Co-authored-by: Vladimir <sheremet.va@icloud.com>
2022-01-14 15:56:42 +01:00
Anjorin Damilare
a6b2c08aab
docs: complete remaining expect apis (#440)
Co-authored-by: Vladimir <sheremet.va@icloud.com>
2022-01-11 18:07:04 +01:00
Anjorin Damilare
3d63d9f18d
docs: add more details to test and describe apis (#422) 2022-01-07 10:18:12 +03:00
Vladimir
4f23115128
docs: expect API (#398) 2022-01-03 20:43:16 +08:00
Anjorin Damilare
e2d23b989f
docs: added examples for setup and teardown apis (#387)
Co-authored-by: patak <matias.capeletto@gmail.com>
2022-01-02 10:04:26 +01:00
Vladimir
f0598bfdf1
docs: align formatting with vite docs (#396) 2022-01-01 13:27:18 +01:00
sorry
3e14f71d45
docs: grammatical errors (#306) 2021-12-25 11:24:16 +01:00
Yugang Cao
cfe01ac5c7
chore: typo (#247)
Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
2021-12-21 12:51:54 +08:00
Christian Hamburger Grøngaard
d0c0e7b7dc
docs: fix API doc typos (#238) 2021-12-20 19:29:27 +01:00
Gabriel Pereira Woitechen
67a4203072
docs: fix typo (#158) 2021-12-15 11:38:47 +08:00
patak
755605bf09
docs: api setup and teardown (#155) 2021-12-15 00:03:17 +01:00
patak
657d35cd40
docs: fix done callback signature (#153) 2021-12-14 21:59:36 +01:00
patak
4c18df7847
docs: test done arg (#152) 2021-12-14 21:44:24 +01:00
patak
bf0ef2dcf3
docs: basic api for tests and suites (#140) 2021-12-14 09:59:32 +01:00
patak
92929228d2
docs: initial api reference (#119) 2021-12-13 11:17:59 +01:00