Skip to content
GitHub

FromAppOptions

interface in meocord/testing Since 4.1.0

interface FromAppOptions

What a test changes of the app MeoCordTestingModule.fromApp builds.

Members

providers

providers?: Provider[]

Providers that replace the app's own by token, or add what it lacks, such as the Discord Client.

controllers

controllers?: (new (...args: any[]) => any)[]

Controllers built beside the app's, such as one only a test uses.

observers

observers?: (new (...args: any[]) => DispatchObserver)[]

@Observer classes told about each call, after the app's own.

shutdownTimeout

shutdownTimeout?: number

How long close() waits for the onShutdown hooks; see TestingModuleOptions.shutdownTimeout.

See also