-
I'm trying to mock an overloaded function. More precisely NestJS' [ConfigService.get](https://github.com/nestjs/config/blob/master/lib/config.service.ts) but mockService.get.calledWith expects the 2 p…
-
Does this module support training a mock to conditionally throw an error? e.g.
```js
when(fn).calledWith('bad').mockImplementation(() => { throw new Error('boom'); });
```
-
Another one for the "Integrations" section (ref https://github.com/qunitjs/qunitjs.com/issues/42), we can promote use of [SinonJS](https://sinonjs.org/).
Perhaps a very plain and simple way, could …
-
I'd love to use this library in conjunction with `vi.mock`
I use it in this way:
```
import { vi, type Mock } from "vitest";
vi.mock("../../someThingIwantToMock")
import { aFunction } from "../…
-
Trying to figure out whether there a straightforward manner to assert failure on unexpected mock invocations. Using the latest code an unexpected invocation results in an undefined, which in the case…
-
I have the following code in my application
```
public get(
url: string,
params: AxiosRequestConfig
): Promise {
return this.axiosInstance.get(url, params);
}
```
where pa…
-
**Is your feature request related to a problem? Please describe.**
Provides a mock/spy/stub module natively in yodart.
**Describe the solution you'd like**
```js
var esp = require('@yodaos/esp…
-
The build is outputting the following error, this is referenced in DefinitelyTyped/DefinitelyTyped#30657
```
node_modules/@types/sinon/index.d.ts:41:20 - error TS2370: A rest parameter must be of…
-
The following SpyCall API functions are missing:
```python
spy.notCalled # true if the spy was not called
spy.calledImmediatelyBefore(anotherSpy);
# Returns true if spy was called before anot…
-
So, I _swear_ I've done this before, but … it doesn't seem to be working:
```
expect(method).was.not.calledWith foo
```
Is negation (`.not`) not supported on Sinon-stuff? (`.notCalledWith` doesn't w…