Ecosyste.ms: Repos
An open API service providing repository metadata for many open source software ecosystems.
GitHub / rjbultitude / mocks-stubs-and-spies-CJS-ESM-Sinon
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.
Stars: 4
Forks: 0
Open Issues: 0
License: None
Language: JavaScript
Repo Size: 87.9 KB
Dependencies:
131
Created: over 3 years ago
Updated: 3 months ago
Last pushed: almost 3 years ago
Last synced: about 1 month ago
Topics: commonjs, commonjs-modules, esm, esmodules, spy, stubs
Files
Dependencies
- chai ^4.3.0 development
- esm ^3.2.25 development
- http-server ^0.12.3 development
- mocha ^8.3.0 development
- sinon ^9.2.4 development
- sinon-chai ^3.5.0 development