63 Commits

Author SHA1 Message Date
Vladimir
2b9b34311f
docs: update mocking guide (#8514) 2025-08-31 12:47:43 +02:00
Vladimir
9e412de354
fix!: rewrite spying implementation to make module mocking more intuitive (#8363) 2025-08-01 16:13:07 +02:00
Vladimir
abc0d8273f
fix(spy)!: support spying on classes (#6160) 2025-06-24 16:17:30 +02:00
Rodolfo Gobbi De Angeli
ad5d6ee6e0
docs: improve mocking classes section (#7833) 2025-04-18 18:19:15 +02:00
zyoshoka
7660723bef
docs: fix typo (#7547) 2025-02-24 15:12:27 +01:00
Max
5e001eea71
docs: add WebSocket to msw features (#7323) 2025-01-22 16:43:42 +01:00
Pjotr Savitski
74fe67c329
docs: changed readHelloWorld in exampele 3 to return a string (#7272) 2025-01-16 20:19:13 +01:00
Hiroshi Ogawa
bae037681e
docs: tweak alias example (#7206) 2025-01-11 16:17:27 +01:00
Arya Emami
8dd2071376
chore: fix various typos (#7054) 2025-01-08 14:21:45 +01:00
Lucas Wiener
57c8740b27
docs: Update mocking.md (#7185) 2025-01-07 09:15:52 +09:00
Vladimir
2324375c06
docs: remove irrelevant vitest.config references and update the sidebar (#7006) 2024-12-02 17:37:37 +01:00
Vladimir
38e50f1bbd
docs: show icons in code-groups and code titles, update sidebar (#6970) 2024-11-27 09:46:01 +01:00
Hiroshi Ogawa
de74785e05
chore(deps): update @antfu/eslint-config v3.8.0 (#6751) 2024-10-23 13:18:42 +02:00
Vladimir
f4a682d7ac
docs: document how to mock class and its methods (#6615) 2024-10-02 16:28:15 +02:00
Mathias Schäfer
1800167e46
docs: Mocking: Config option is called unstubEnvs, method is called unstubAllEnvs (#6579) 2024-09-27 10:46:45 +09:00
Huyen Nguyen
26af0eb5b3
docs: typo in mocking guide (#6409) 2024-08-27 07:40:49 +02:00
Vladimir
a48be6ffc4
fix(vitest): correctly resolve mocked node:* imports in __mocks__ folder (#6204) 2024-07-23 21:12:06 +02:00
Vladimir
12bb567e52
fix(web-worker): expose globals on self (#6170) 2024-07-23 15:52:36 +02:00
Vladimir
57d23cec43
docs: fix inconsistencies, remove low informative twoslash examples (#6200) 2024-07-23 14:52:21 +02:00
xuxucode
7e87e86fe3
Update mocking.md (#6180)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-07-22 12:59:36 +02:00
Vladimir
a820b15665
docs: add mock fs section (#6021) 2024-07-02 13:30:25 +02:00
Vladimir
471cf97b0c
chore: always require curly braces (#5885)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2024-06-16 18:10:10 +02:00
Vladimir
973ba37403
chore: update eslint config package (#5870) 2024-06-11 16:31:37 +02:00
Vladimir Sheremet
ee27e48733
docs: remove mentions of deleted examples from docs 2024-05-23 08:53:58 +02:00
Ashley Engelund
08c79d6c67
docs: Improve formatting and readability of the Mocking / Cheat Sheet section (#5632) 2024-04-29 13:23:24 +02:00
btea
20357e2e20
docs: add @shikiji/vitepress-twoslash (#5483) 2024-04-08 14:19:12 +02:00
Maximiliano Kazanski
b48586b51c
docs: fix links and badges error (#5239) 2024-02-20 14:19:33 +01:00
renovate[bot]
7a31a1ae42
chore(deps): update dependency @antfu/eslint-config to v2 (#5153) 2024-02-08 17:33:12 +01:00
Paul
2c5d192a0b
docs: use same pattern in examples (#5051) 2024-01-30 22:51:45 +01:00
Artem Zakharchenko
2b911d21f3
docs(mocking): fix broken msw links (#4714) 2023-12-09 12:23:52 +01:00
Vladimir Sheremet
ee3c6d8524 docs: add virtual modules section 2023-12-04 16:44:03 +01:00
Vladimir
2ff35330b2
docs: add section about mocking methods inside the same file (#4611)
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-11-29 10:34:58 +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
Alex Nicholls
6a149a644a
docs: Update incorrect import in request mocking example (#4527) 2023-11-18 09:30:01 +01:00
Vladimir
0ccf5ac57e
docs: update msw example (#4502) 2023-11-15 16:43:02 +01:00
Hamir Mahal
c6cd9242b5
docs: improve Timers section of mocking.md (#3482) 2023-06-01 10:46:52 +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
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
Cue
9a0002be7c
docs: fix broken links (#2739) 2023-02-11 13:47:57 +01:00
Lioness100
2f87505ffd
docs: fix typos (#2815) 2023-02-08 11:30:35 +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
Mohammad Bagher Abiat
93a0f4277d
docs: benchmarking and tinybench (#2059) 2022-09-20 11:12:20 +08:00
Filip Tammergård
5c06494412
docs: update timer mocking section (#1953) 2022-09-02 13:53:11 +08:00
Joe Zimmerman
3ecc91ef98
docs: a few spelling/grammar fixes (#1701)
* Fix typos and enhance grammar.

* Merge branch 'main'

* Apply suggestions from code review

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

Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2022-07-24 09:47:29 +03:00
Joe Zimmerman
7306994394
docs: typos (#1686) 2022-07-22 14:27:36 +08:00
Joaquín Sánchez
235cfa7eea
docs: add section title in guide pages (#1583) 2022-07-15 00:28:28 +08:00
Vladimir
5b837f9472
docs: improve wording in mocking cheat sheet (#1617)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-07-09 15:22:21 +08:00
Vladimir
adf82b3f68
docs: add mocking cheat sheet (#1536)
* docs: add mocking cheat sheet

* docs: fix modules mocking example
2022-06-24 13:28:56 +00:00
Zac Hayes
ddd4a9552a
docs(mocking): fix Timers example (#1333) 2022-05-20 16:50:33 +08:00