If I import AngularFirePerformance anywhere reachable by my Jest unit tests (part of @nrwl/nx) I get
TypeError: window.performance.mark is not a function
The error is right on the import, no additional code needed.
The likelihood is this is an incompatibility with Jest's performance-related code. Trying to copy over values from perf_hooks didn't work although it changed the error reports. I am opening the issue here to see if anyone has ideas how to fix this. I am using the latest stable versions of everything.