declarative-e2e-test
Version:
Declaration driven test generator for REST endpoints
16 lines (15 loc) • 521 B
TypeScript
import { IApiMapper } from 'declarative-test-structure-generator';
import { ExpectType } from './request';
import { ErrorHandlerType, IWithHeaders } from './shared';
export declare type logLevelType = 'SILENT' | 'ERROR' | 'DEBUG' | 'TRACE';
export interface ITestRequestConfig extends IWithHeaders {
url?: string;
expect?: ExpectType | ExpectType[];
error?: ErrorHandlerType;
}
export interface ITestConfig {
logLevel?: logLevelType;
api: IApiMapper;
config?: ITestRequestConfig;
app?: any;
}