/** * @license * Copyright Andrey Chalkin (https://github.com/L2jLiga). All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/L2jLiga/fastify-decorators/blob/master/LICENSE */ import { FastifyInstance } from 'fastify'; import { Constructor } from '../decorators/helpers/inject-dependencies.js'; import { Plugins } from './fastify-plugins.js'; import { ServiceMock } from './service-mock.js'; export interface ControllerTestConfig { controller: C; instance?: FastifyInstance; mocks?: ServiceMock[]; plugins?: Plugins; } export declare type FastifyInstanceWithController = FastifyInstance & Pick, 'controller'>; export declare function configureControllerTest(config: ControllerTestConfig>): Promise>;