basalt / testing/src / CreateTestAppOptions
Interface: CreateTestAppOptions
Defined in: testing/src/app.ts:45
Extends
Properties
adapter?
> optional adapter?: TestAdapterName
Defined in: testing/src/app.ts:59
HTTP adapter to drive requests through. Pass the matching adapter plugin (fastifyPlugin/expressPlugin/honoPlugin) in plugins yourself — the harness only decides how requests are dispatched:
- 'fastify' (default): in-process via
inject()— no socket. - 'express': real
listen(0)on 127.0.0.1 + fetch (Express has no inject); the socket is closed onshutdown(). - 'hono': in-process via
hono.fetch(new Request(…))— no socket.
'express' and 'hono' need @basaltkit/express / @basaltkit/hono installed (optional peers of this package); the default needs nothing new.
config?
> optional config?: Record<string, unknown>
Defined in: core/src/app.ts:17
Raw config, keyed by plugin name (e.g. { 'basalt:cache': { driver: 'memory' } })
Inherited from
plugins?
> optional plugins?: BasaltPlugin<any>[] | BasaltPlugin<never>[]
Defined in: core/src/app.ts:15