Some examples on how to achieve the same goal with either of both libraries: sinon and jest. Also some of those goals achievable only by one of these tools.
-
Updated
Nov 18, 2024 - JavaScript
Some examples on how to achieve the same goal with either of both libraries: sinon and jest. Also some of those goals achievable only by one of these tools.
Mr. Hyde is a Discord selfbot (bot running on your user account) bringing you some usefull features
spy and mock for simple testcase
Complete React application of Numspy API.
A logger/spy Discord bot
Helper function to create spy object for `jest`, same as `jasmine.createSpyObj`
Fastify plugin to override decorators, plugins and hooks
Google Maps JS API stub to allow unit testing of components and other functionality that depends on it
A script designed to display users' most recent logins directly from WazapWeb.
A demo of stubs and spies with CommonJS and ES modules. CommonJS doesn't allow mock, stubs and spies for dependencies called within the same module and ES modules don't allow them for named imports. This repo contains demos of the problem as well as solutions.
Add a description, image, and links to the spy topic page so that developers can more easily learn about it.
To associate your repository with the spy topic, visit your repo's landing page and select "manage topics."