Open ASE55471 opened 6 months ago
I agree that this is how it should work but if you're looking for a work around. Apparently casting your function as any works.
const wrapped = wrap(beforeSignIn as any);
Also check out #163 for a general wrapper for V2 functions
Version info
firebase-functions-test:
firebase-functions:
firebase-admin:
Test case
I am testing firebase blocking functions by
firebase-functions-test
, But the there is no overload onwrap
function.Steps to reproduce
Production code:
Test code(This throws error):
Expected behavior
wrap
function should accept typeBlockingFunction
Actual behavior