hello there
36c39a56fc
docs: add mising async to resolves and rejects example ( #1476 )
2022-06-13 17:35:23 +03:00
Kazuma Ebina
d25a3f243e
docs(api): typo ( #1441 )
2022-06-06 13:58:53 +08:00
Vasilii Kovalev
e8586caafc
docs: fix the example for test.fails function ( #1429 )
2022-06-04 21:11:51 +03:00
Anthony Fu
5679a2a24d
docs: improve snapshot docs
2022-06-04 05:09:45 +08:00
Anthony Fu
6e6d63c537
docs: new theme ( #1416 )
2022-06-03 19:01:25 +08:00
Vladimir
17939379ed
feat: add dynamicImportSettled utility function ( #1359 )
2022-05-29 12:58:27 +08:00
btea
f66b4f59c0
chore: fix each demo ( #1368 )
2022-05-26 11:23:03 +08:00
Jeff
fbd47d0c3d
docs: fix some typos ( #1299 )
2022-05-12 18:04:59 +02:00
张扬
3cdcdf6539
docs: fix comments api/beforeEach ( #1282 )
2022-05-10 10:39:19 +08:00
张扬
e6ee27fd4c
docs: fix type api/expect.hasAssertions ( #1281 )
2022-05-10 09:44:10 +08:00
张扬
9695c6c845
docs: fix api/expect.[toHaveReturnedWith, toHaveLastReturnedWith] procuct -> product ( #1275 )
2022-05-09 07:45:57 +00:00
木荣
00a1d7b691
docs: fix api/expect.addSnapshotSerializer hyperlink ( #1270 )
2022-05-08 18:47:38 +08:00
木荣
dfd4fc314c
docs: fix api/toThrowErrorMatchingSnapshot & api/toThrowErrorMatchingInlineSnapshot hyperlink ( #1268 )
2022-05-08 09:29:32 +00:00
Vladimir
93422cb2fb
docs: add more expects and guides ( #1236 )
2022-05-05 23:35:43 +08:00
Anthony Fu
76c389497c
feat: test.skipIf and test.runIf apis
2022-05-02 23:48:14 +08:00
Anthony Fu
4f198ef284
feat: test context ( #900 )
...
* feat: support concurrent snapshot
* feat: cleanup callback for `beforeAll` and `beforeEach`
2022-04-25 21:52:25 +08:00
Anthony Fu
39d02f6f1d
chore: update apis
2022-04-25 20:09:27 +08:00
Anthony Fu
713c870a55
chore: lint
2022-04-25 19:44:30 +08:00
Vladimir
eb13d34c0a
feat: add vi.resetModules ( #1102 )
2022-04-07 02:49:43 +08:00
Cphayim
48a82ed6cf
docs: fix a typo ( #1090 )
2022-04-03 20:47:07 +08:00
Vladimir
668015277f
fix: typescript allows new Spy, add lastCall support for spy ( #1085 )
2022-04-03 18:41:03 +08:00
Anthony Fu
db824cf434
chore: apply lint
2022-04-03 16:35:29 +08:00
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