Open
Description
In the Mithril test suite, @dead-claudia uses a lock
utility that tracks stray calls to functions after a test is finished. This should be a core functionality of o.spy()
The groundwork I'm doing to fix #50 should make the default case easy (spies defined during a test should not run when it's done. Spies defined at test-definition time shouldn't expire though.
It may be possible to have spies defined in before
/beforeEach
hooks to last until the matching after
/afterEach
hook.
Metadata
Metadata
Assignees
Labels
No labels