@contract-case/case-core
Version:
Core functionality for the ContractCase contract testing suite
20 lines • 1.05 kB
TypeScript
import { DataContext, ResultFormatter } from '@contract-case/case-plugin-base';
import type { CaseConfig } from '../../core/types';
import { BrokerService } from '../../core/BrokerService';
import { TestPrinter } from './types';
export declare class DeployChecker {
context: DataContext;
broker: BrokerService;
resultPrinter: ResultFormatter;
constructor(config: CaseConfig, printer: TestPrinter, parentVersions: Array<string>, dependencies?: import("../../core/types").WriterDependencies);
/**
* Checks whether it's safe to deploy to a particular environment
*
* @param serviceName - The name of the service to check
* @param environment - The environment to see if it's safe to deploy to$a
* @param versionOverride - Optionally, an override for the version to check
* @returns Promise that resolves to true if it is safe to deploy, false otherwise.
*/
check(serviceName: string, environment: string, versionOverride?: string): Promise<boolean>;
}
//# sourceMappingURL=DeployChecker.d.ts.map