mocks-stubs-and-spies-CJS-ESM-Sinon

mocks-stubs-and-spies-CJS-ESM-Sinon

rjbultitude

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.

4 Stars
0 Forks
4 Watchers
JavaScript Language
Cost to Build
$3.9K
Market Value
$1.9K

Growth over time

7 data points  ·  2021-08-01 → 2025-04-01
Stars Forks Watchers
💬

How do you feel about this project?

Ask AI about mocks-stubs-and-spies-CJS-ESM-Sinon

Question copied to clipboard

What is the rjbultitude/mocks-stubs-and-spies-CJS-ESM-Sinon GitHub project? Description: "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.". Written in JavaScript. Explain what it does, its main use cases, key features, and who would benefit from using it.

Question is copied to clipboard — paste it after the AI opens.

How to clone mocks-stubs-and-spies-CJS-ESM-Sinon

Clone via HTTPS

git clone https://github.com/rjbultitude/mocks-stubs-and-spies-CJS-ESM-Sinon.git

Clone via SSH

[email protected]:rjbultitude/mocks-stubs-and-spies-CJS-ESM-Sinon.git

Download ZIP

Download master.zip

Found an issue?

Report bugs or request features on the mocks-stubs-and-spies-CJS-ESM-Sinon issue tracker:

Open GitHub Issues