kui-shell
Version:
This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool
27 lines (26 loc) • 1.38 kB
TypeScript
import { Func, Suite, HookFunction } from 'mocha';
import { Application } from 'spectron';
export interface ISuite extends Suite {
app: Application;
_kuiDestroyAfter?: boolean;
}
export declare const refresh: (ctx: ISuite, wait?: boolean, clean?: boolean) => Promise<void>;
export interface BeforeOptions {
noApp?: boolean;
popup?: string[];
noProxySessionWait?: boolean;
afterStart?: () => Promise<void>;
beforeStart?: () => Promise<void>;
}
export declare const before: (ctx: ISuite, options?: BeforeOptions) => HookFunction;
export declare const after: (ctx: ISuite, f?: () => void) => HookFunction;
export declare const oops: (ctx: ISuite, wait?: boolean) => (err: Error) => Promise<never>;
export declare const restart: (ctx: ISuite) => Promise<boolean>;
export declare const localIt: (msg: string, func: Func) => Mocha.Test;
export declare const localDescribe: (msg: string, suite: (this: Suite) => void) => Suite;
export declare const dockerDescribe: (msg: string, suite: (this: Suite) => void) => Suite;
export declare const remoteIt: (msg: string, func: Func) => Mocha.Test;
export declare const pDescribe: (msg: string, suite: (this: Suite) => void) => Suite;
export declare const proxyIt: (msg: string, func: Func) => Mocha.Test;
export declare const pit: (msg: string, func: Func) => Mocha.Test;
export declare const expectedVersion: any;