Setu-TS
    Preparing search index...

    Interface TestAppFromPlugins

    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.

    0.6.0

    interface TestAppFromPlugins {
        app?: undefined;
        autoStart?: boolean;
        overrides?: undefined;
        plugins?: IPlugin[];
        without?: undefined;
    }
    Index
    app?: undefined

    Not available on this arm — supply plugins or app, never both.

    autoStart?: boolean

    Whether 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).
    true
    
    overrides?: undefined

    Not available on this arm — supply plugins or app, never both.

    plugins?: IPlugin[]

    Plugins 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.

    without?: undefined

    Not available on this arm — supply plugins or app, never both.