Vladimir
|
9e412de354
|
fix!: rewrite spying implementation to make module mocking more intuitive (#8363)
|
2025-08-01 16:13:07 +02:00 |
|
Matei Trandafir
|
81d7601e45
|
feat: add spy option to vi.mockObject (#8285)
|
2025-07-14 11:02:56 +02:00 |
|
Vladimir
|
abc0d8273f
|
fix(spy)!: support spying on classes (#6160)
|
2025-06-24 16:17:30 +02:00 |
|
Ben Durrant
|
b67d307ded
|
feat: Explicit Resource Management support in mocked functions (#7927)
|
2025-05-17 15:34:35 +02:00 |
|
Hiroshi Ogawa
|
465bdb3d77
|
feat: add vi.mockObject to automock any object (#7761)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
|
2025-05-05 16:21:42 +02:00 |
|
Joakim J
|
37854a3395
|
docs: Fixed typo under vi.useRealTimers section (#7840)
|
2025-04-16 16:47:33 +02:00 |
|
Hiroshi Ogawa
|
167a98d77c
|
fix: exclude queueMicrotask from default fake timers to not break node fetch (#7505)
|
2025-02-18 08:45:06 +02:00 |
|
btea
|
7bfa70cffd
|
docs: describe waitFor parameters more clearly (#7498)
|
2025-02-15 14:39:18 +09:00 |
|
Hiroshi Ogawa
|
03912b43a7
|
fix: fix getMockedSystemTime for useFakeTimer (#7405)
|
2025-02-04 14:43:08 +01:00 |
|
Ryan Waskiewicz
|
ad8ffac1ea
|
docs(vi): remove extra comma (#7387)
|
2025-01-31 08:29:22 +09:00 |
|
Arya Emami
|
8dd2071376
|
chore: fix various typos (#7054)
|
2025-01-08 14:21:45 +01:00 |
|
Vladimir
|
3341fb58d0
|
docs: clarify that imports are not available in vi.hoisted (#7190)
|
2025-01-07 17:17:32 +01:00 |
|
Vladimir
|
3c18ecf720
|
docs: replace Vitest 2.2 mentions (#7025)
|
2024-12-06 09:46:48 +01:00 |
|
Joe
|
db7a888801
|
feat!: spy.mockReset changes (#6426)
|
2024-12-05 15:01:06 +01:00 |
|
Vladimir
|
38e50f1bbd
|
docs: show icons in code-groups and code titles, update sidebar (#6970)
|
2024-11-27 09:46:01 +01:00 |
|
Mason
|
03ca286788
|
docs: update example of "vi.importActual" (#6929)
|
2024-11-19 17:05:16 +09:00 |
|
Hiroshi Ogawa
|
234674da38
|
docs: add vi.mocked(..., { partial: true }) example (#6783)
|
2024-10-31 16:40:55 +01:00 |
|
mgabor
|
63f8b07042
|
docs: fix typo (#6745)
|
2024-10-20 12:59:33 +09:00 |
|
Vladimir
|
5267d4e99b
|
docs: clarify vi.setSystemTime (#6605)
|
2024-10-01 16:04:48 +02:00 |
|
Vladimir
|
87232420eb
|
docs: clarify
|
2024-09-23 21:23:37 +02:00 |
|
Juan Sanchez
|
c3b2757cd3
|
feat(vitest): allow env to be stubbed to undefined (#6359)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
|
2024-09-03 11:22:20 +02:00 |
|
Vladimir
|
95f0203f27
|
feat(mocker): introduce @vitest/mocker package, allow { spy: true } instead of a factory (#6289)
|
2024-08-21 17:17:27 +02:00 |
|
Benjamin Devine
|
8ff6356059
|
feat(vitest): add vi.advanceTimersToNextFrame (#6347)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
|
2024-08-15 10:38:44 +02:00 |
|
Sung Ye In
|
f5e0b9877f
|
feat(vitest): add return type and promisable mockFactory (#6139)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
|
2024-08-12 16:14:12 +02:00 |
|
Kamil Ogórek
|
5d542035ac
|
docs: Update common-errors to include dynamic import aliases (#6227)
|
2024-08-09 16:42:42 +02:00 |
|
Vladimir Sheremet
|
febca74f7d
|
docs: add Promise types
|
2024-07-31 13:37:59 +02:00 |
|
Vladimir
|
57d23cec43
|
docs: fix inconsistencies, remove low informative twoslash examples (#6200)
|
2024-07-23 14:52:21 +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
|
7b2f64cfa3
|
feat: implement module mocking in browser mode (#5765)
|
2024-05-31 11:19:38 +02:00 |
|
Vladimir
|
6598fba55b
|
docs: remove version badges (#5727)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
|
2024-05-15 08:44:37 +02:00 |
|
Vladimir
|
a99a14c1cc
|
feat: allow import statement as vi.mock path for better IDE support (#5690)
|
2024-05-09 13:19:38 +02:00 |
|
btea
|
20357e2e20
|
docs: add @shikiji/vitepress-twoslash (#5483)
|
2024-04-08 14:19:12 +02:00 |
|
Hiroshi Ogawa
|
2e8e05e642
|
docs: add default for fakeTimers.toFake (#5197)
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
|
2024-03-26 15:28:19 +01:00 |
|
Maximiliano Kazanski
|
b48586b51c
|
docs: fix links and badges error (#5239)
|
2024-02-20 14:19:33 +01:00 |
|
Hong Xu
|
cad08ee19b
|
docs: add config param to useFakeTimer (#5213)
|
2024-02-16 09:45:20 +01:00 |
|
Vladimir
|
7ca786570d
|
docs: use Badge to display versions (#4823)
|
2024-01-02 13:03:29 +01:00 |
|
Huyen Nguyen
|
d1905bdde7
|
docs: improve phrasing of a sentence in the vi.mock section (#4672)
|
2023-12-06 10:20:53 +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 |
|
Vladimir
|
cc19117d30
|
chore: migrate to flat eslint config (#4472)
|
2023-11-11 08:07:39 +01:00 |
|
Vladimir
|
eda66e8639
|
docs: prefer .js extension in the documentation (#4411)
|
2023-10-31 14:39:43 +01:00 |
|
Vladimir
|
d40b3a5813
|
refactor!: remove EnhancedSpy type, deprecate SpyInstance, improve mocks and vi documentation (#4400)
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
|
2023-10-31 12:20:41 +01:00 |
|
Ari Perkkiö
|
98fe3d5540
|
fix: nextTick mocking error message to mention correct config option (#4215)
|
2023-10-02 16:45:53 +02:00 |
|
Vladimir Sheremet
|
f8dacb2c2c
|
docs: have waitFor/waitUtil on the top level
|
2023-09-27 11:33:55 +02:00 |
|
Ajay
|
84f442f7dd
|
docs: vi.doMock includes that it mocks subsequent dynamic imports (#4169)
|
2023-09-27 09:44:54 +02:00 |
|
Ari Perkkiö
|
8b4a44ad16
|
feat!: support multiple parallel child_process (#3925)
|
2023-09-27 09:39:26 +02:00 |
|
Anthony Blond
|
1f0249ee22
|
docs: remove reference to vi.restoreCurrentDate() from doc (does not exist) (#4160)
|
2023-09-22 11:00:46 +02:00 |
|
Vladimir Sheremet
|
d284e12425
|
chore: improve waitFor/waitUntil examples
|
2023-09-16 10:20:07 +02:00 |
|
Dunqing
|
e0ac97cf6e
|
feat(vitest): support vi.waitUntil method (#4129)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
|
2023-09-16 10:11:00 +02:00 |
|
Dunqing
|
d79cb44bf8
|
feat(vitest): support vi.waitFor method (#4113)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
|
2023-09-14 10:16:35 +02:00 |
|
Vladimir Sheremet
|
b75f91d265
|
docs: remove outdated statement
|
2023-09-13 10:14:58 +02:00 |
|