@nlabs/lex
Version:
51 lines (50 loc) • 1.8 kB
TypeScript
export interface TestOptions {
readonly analyze?: boolean;
readonly aiDebug?: boolean;
readonly aiGenerate?: boolean;
readonly aiAnalyze?: boolean;
readonly bail?: boolean;
readonly changedFilesWithAncestor?: boolean;
readonly changedSince?: string;
readonly ci?: boolean;
readonly cliName?: string;
readonly collectCoverageFrom?: string;
readonly colors?: boolean;
readonly config?: string;
readonly debug?: boolean;
readonly debugTests?: boolean;
readonly detectOpenHandles?: boolean;
readonly env?: string;
readonly errorOnDeprecated?: boolean;
readonly expand?: boolean;
readonly forceExit?: boolean;
readonly generate?: boolean;
readonly json?: boolean;
readonly lastCommit?: boolean;
readonly listTests?: boolean;
readonly logHeapUsage?: boolean;
readonly maxWorkers?: string;
readonly noStackTrace?: boolean;
readonly notify?: boolean;
readonly onlyChanged?: boolean;
readonly outputFile?: string;
readonly passWithNoTests?: boolean;
readonly quiet?: boolean;
readonly removeCache?: boolean;
readonly runInBand?: boolean;
readonly setup?: string;
readonly showConfig?: boolean;
readonly silent?: boolean;
readonly testLocationInResults?: boolean;
readonly testNamePattern?: string;
readonly testPathPattern?: string;
readonly update?: boolean;
readonly useStderr?: boolean;
readonly verbose?: boolean;
readonly watch?: string;
readonly watchAll?: boolean;
}
export type TestCallback = typeof process.exit;
export declare const getTestFilePatterns: (testPathPattern?: string) => string[];
export declare const test: (options: TestOptions, args: string[], callback?: TestCallback) => Promise<number>;
export default test;