UNPKG

arrange-act-assert

Version:

The lightweight "Act-Arrange-Assert" oriented testing framework

14 lines (13 loc) 744 B
import type { TestOptions } from "../testRunner/testRunner"; import type { TestSuiteOptions } from "../TestSuite/TestSuite"; export interface ResolvablePromise extends Promise<void> { resolve(): void; reject(error: unknown): void; } export declare function resolvablePromise(): ResolvablePromise; export declare function clearModuleCache(file: string, _root?: string): void; export declare function getTestSuiteOptions(argv?: string[]): Partial<TestSuiteOptions>; export declare function getTestOptions(argv?: string[]): Partial<TestOptions>; export declare function getCallSites(): string[]; export declare function testRegex(path: string, regex: RegExp[]): boolean; export declare function getCommonBasePath(files: string[]): string;