fedify
fedify copied to clipboard
`MockFederation` & `MockContext` for easier unit tests
To make Fedify apps testable, Fedify should provide MockFederation and MockContext. They need to satisfy Federation and Context interfaces, and have few more properties and methods such as:
receiveActivity(activity: Activity): Promise<void>getSentActivities(): Activity[]clearSentActivities(): void