...jest.requireActual typescript Spread types may only be created from object types. code example
Example: spread types may only be created from object types firebase
... doc.payload.doc.data() as {}
... doc.payload.doc.data() as {}