Registers a mock service under a capability token.
Plugin name (also the capability token when provides is absent)
The mock service object
Optionaloptions: { priority?: number; provides?: string }
Optional provides token and priority
this for chaining
Returns all plugins in true insertion order.
All plugins for createTestApp({ plugins })
Clears the store. Call in afterEach to reset between tests.
Collects mock plugin definitions and real plugins, produces the
IPlugin[]forcreateTestApp, and resets between tests.Integration tests that mock several capabilities at once (e.g.
database+cache+logger) build the plugin array viaFixtureManagersoafterEach(() => fixtures.reset())is the only teardown needed.Example
Since
0.1.0