import { TestProject } from "vitest/node"; //#region src/global-setup.d.ts declare module "vitest" { interface ProvidedContext { __TESTCONTAINERS_RABBITMQ_IP__: string; __TESTCONTAINERS_RABBITMQ_PORT_5672__: number; __TESTCONTAINERS_RABBITMQ_PORT_15672__: number; __TESTCONTAINERS_RABBITMQ_USERNAME__: string; __TESTCONTAINERS_RABBITMQ_PASSWORD__: string; } } /** * Setup function for Vitest globalSetup * * Starts a RabbitMQ container before all tests and provides connection details * to tests via Vitest's provide API. The container is automatically stopped * and cleaned up after all tests complete. * * This function should be configured in your `vitest.config.ts`: * * @example * ```typescript * import { defineConfig } from "vitest/config"; * * export default defineConfig({ * test: { * globalSetup: ["@amqp-contract/testing/global-setup"], * }, * }); * ``` * * @param provide - Function to provide context values to tests * @returns Cleanup function that stops the RabbitMQ container */ declare function setup({ provide }: TestProject): Promise<() => Promise>; //#endregion export { setup as default }; //# sourceMappingURL=global-setup.d.mts.map