feat: add mode to fn hooks#259
Conversation
|
The idea and initial implementation are ok, but lack:
Since it's a breaking change in the current PR implementation, a backward compatible implementation should be investigated. |
|
commit: |
|
I don't see any breaking change? The callbacks are backward compatible. It is unlikely that user passed in a callback with an optional parameter. |
Since the existing code is not documented, only the public API change should have a JSDoc, so the
I guess a properly commented |
See #259 (comment) |
You don't need to make |
It will fail with strict type checking options enabled. |
|
Thanks ! |

Provide a way to check the mode for fn hooks that is consistent with setup and teardown.