testing
Written for test code — asserting what a service was asked to do, or awaiting what it does.
| Name | Category | Description |
|---|---|---|
waitForServiceEvent | utils | Wait for a service event to fire and resolve with the emitted record. Useful
in tests to await the result of an asynchronous service event, a bit like
Curried: bind the Feathers emits events as |
recordHooks | testing | Record every call that passes through a service or an application, so a test can assert what was requested — and how often — without standing up a spy per method. Pass an app to record all of its services, or a single service to record just
that one; The record is indexed by hook type and method — By default the live |
See all tags for the full vocabulary.
