ts-sinon icon indicating copy to clipboard operation
ts-sinon copied to clipboard

Sinon extension providing functions to: stub all object methods and to stub interface.

Results 26 ts-sinon issues
Sort by recently updated
recently updated
newest added

Some use cases require stubbing a service without creating an object, as the constructor has unwanted side effects, which are non relevant in a test scenario. This change allows overriding...

Bumps [flat](https://github.com/hughsk/flat) from 4.1.0 to 5.0.2. Commits e5ffd66 Release 5.0.2 fdb79d5 Update dependencies, refresh lockfile, format with standard. e52185d Test against node 14 in CI. 0189cb1 Avoid arrow function syntax....

dependencies

Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used [patch-package](https://github.com/ds300/patch-package) to patch `[email protected]` for the project I'm working on. Related to this ticket https://github.com/ttarnowski/ts-sinon/issues/134, `stubInterface`...

BREAKING CHANGE: sinon and @types/sinon have to be installed along with ts-sinon to pevent issues because of different sinon versions

Cannot stub got (the http request library) ` import sinon, { stubObject } from "ts-sinon"; import got, { Got } from 'got'; const gotMock = stubObject(got); //crashes ` Error message:...

Hello everyone, I need your help checking what's happening with the following test: ``` it("on successful creation delivers created service", async function() { let anyService = new Service(...) let serviceRepositorySpy...

Bumps [pathval](https://github.com/chaijs/pathval) from 1.1.0 to 1.1.1. Release notes Sourced from pathval's releases. v1.1.1 Fixes a security issue around prototype pollution. Commits db6c3e3 chore: v1.1.1 7859e0e Merge pull request #60 from...

dependencies

There are many dependabot pull requests pending since the summer that needs to be applied; in particular the `@types/sinon` dependency that currently can result in broken tests due to fake...

This allows the library to be used both in node and browser environments. Fixes #109

Steps to reproduce: - Have a base class with a method named "foo" - Extend the base class and add a method named "bar" - Use stubConstructor to stub methods...