OptionalappNot available on this arm — supply plugins or app, never both.
OptionalautoWhether to auto-start the application.
true (default): calls await app.start() before returning.false: returns the un-started app, required both to register more
plugins (register() throws once started) and to add global middleware
(middleware.add throws after start() compiles the pipeline).OptionaloverridesNot available on this arm — supply plugins or app, never both.
OptionalpluginsPlugins to pre-register before start(). Must include a runtime
capability provider (RuntimePlugin() or a mock providing
CAPABILITIES.RUNTIME) when autoStart is true — the kernel
throws otherwise.
Defaults to [], which is only usable with autoStart: false.
OptionalwithoutNot available on this arm — supply plugins or app, never both.
Hand-assembled arm of
TestAppOptions: the test names the plugins it wants and gets nothing else.Use this for unit scope — a route, a middleware, one plugin in isolation. For anything whose behaviour depends on how the application is composed, prefer
TestAppFromApp, which builds from the project's own composition root instead of a second, divergent one.Since
0.6.0