126 Commits

Author SHA1 Message Date
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
Jan Müller
b653409dee
docs(api): add missing method documentation (#1681)
* docs: add missing method documentation

Document `clearAllMocks`, `resetAllMocks` and `restoreAllMocks`.

Closes #1355

* docs(api): fix heading order
2022-07-19 17:39:55 +03:00
Vladimir
5d0dfe9c6d
feat: make sequencer public, add option to run tests in random order (#1582)
* feat: make sequencer public, add random option

* test: cleanup

* chore: add random option to suite

* chore: cleanup

* chore: cleanup

* chore: cleanup

* chore: cleanup

* chore: cleanup

* chore: rename random -> shuffle

* Apply suggestions from code review

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>

* Update docs/config/index.md

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-07-06 10:08:22 +00:00
Paul Eboselume
2a880781fd
docs: fix typos (#1596) 2022-07-04 20:00:15 +03:00
Ismail Lounane
1bbe5b9cff
docs: typo (#1569) 2022-06-29 18:50:48 +08:00
Vladimir
3320ecaa39
docs: add information about asymmetric matchers (#1551) 2022-06-26 13:11:53 +08:00
Jeff
c8d61ed8e1
chore: update checkmark character (#1490)
Passing tests were using the square root character `√` (`\u221A`),
replaced this with the same glyph used in Vite's output: `✓` (`\u2713`).
2022-06-15 10:39:52 +03:00
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