You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 matchingafter
/afterEach
hook.The text was updated successfully, but these errors were encountered: