syang-greatvines
Results
2
comments of
syang-greatvines
I have a need for the proposed solution as well.
Here's my workaround for the time being: ``` async function withoutHooksPromise(fn) { const mockedConsole = jest.spyOn(console, 'warn').mockImplementation(); disableHooks(); await fn().finally(() => { reenableHooks(); mockedConsole.mockRestore(); }); } ```