issues Search Results · repo:mcous/vitest-when language:TypeScript
Filter by
0 results
(62 ms)0 results
inmcous/vitest-when (press backspace or delete to remove)Hi! I saw your library when figuring out how to mock something in vitest. I like the idea a lot, but I m not sure how to
use it for what I need. I have a function cacheKeys that I call with (ctx, string) ...
rmtmckenzie
- 2
- Opened 16 days ago
- #21
vitest-when has a peer dependency on vitest with a version range of =0.31.0 3.0.0 but the new vitest@3 is out. The
latest release at the time of writting this issue is 3.0.2. This causes a warning (shown ...
ro2nie
- 1
- Opened on Jan 20
- #18
In jest-when it is possible to use when mocks on spied functions. It would be very nice if we could do the same here.
Simple Example to demonstrate what should be possible
test( Example , () = {
class ...
RylanBueckert-Broadsign
- 4
- Opened on Oct 31, 2024
- #15
I m migrating some code from jest-when and it would be really nice to have *Once method variants to replace
.mockResolvedValueOnce and .mockReturnValueOnce.
narthur
- 1
- Opened on Oct 24, 2024
- #14
What
In jest-when there s a feature we use at our company that verifies all of the when mocks are called by the end of a test
-https://github.com/timkindberg/jest-when/blob/master/src/when.js#L216
In ...
buck06191
- 3
- Opened on May 10, 2024
- #12
Bug description
When defining a mock that will return a rejected promise using .thenReject(new Error()) and this mock will not be
called, the test succeeds but throws the error defined in the thenReject ...
BeniRupp
- 1
- Opened on Jan 10, 2024
- #7

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.