https://github.com/ianmitchell/jest-proof
https://github.com/ianmitchell/jest-proof
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ianmitchell/jest-proof
- Owner: IanMitchell
- Created: 2017-02-27T22:52:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-27T22:54:49.000Z (over 9 years ago)
- Last Synced: 2025-02-01T15:45:00.567Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
Bad file names, but essentially this is the structure:
* Base class (person.js) which has methods / variables intended to be static.
* Closure (static-person.js) which is intended to create a singleton to persist Base class variables.
* Consumers (actor.js) that have a dependency on the Closure
When testing Consumer, if you mock out a method you get from the closure, it doesn't reset between tests. How can you discard the mock?