Closed dima11221122 closed 2 years ago
Thanks for opening up the issue!
I spun up a new project but was not able to reproduce this.
Do you have a repo I can look at? If not, do you have an example of the function and test that you are running?
Thank you again!
I got this error message as well, when upgrading my project. I was importing firebase-functions-test
from a jest setup file and getting the same error as @dima11221122. After upgrading my jest/ts-jest/ts-node dependencies to the latest versions this error went away.
@ericallam Oh man, I totally forgot about that!!
@dima11221122
If you're using jest < 28, you'll run into this issue.
Please try upgrading to jest@28 and let me know if you can still reproduce this.
More info:
I'll open a pr to include jest@28 as a peer dep to reduce this problem. Thank you for raising this!
Thank you guys for your help, after I upgraded to jest 28 the problem is gone
Version info
firebase-functions-test: 2.1.0
firebase-functions: 3.21.2
firebase-admin: 10.2.0
Test case
Steps to reproduce
Expected behavior
No errors
Actual behavior