UNPKG

soda-test

Version:

Package for Unit and API tests

23 lines (22 loc) 1.05 kB
import { anyFunction } from './executables'; export declare function mapLibraries(...libmap: [name: string, reqCall: () => unknown][]): void; export declare let isKarma: boolean; export declare function getCallerFileName(level: number): string; export declare function init(isKarmaParam?: boolean): Promise<void>; export declare function getLibFromPath(libname: string, caller: string, reload?: boolean): Record<string, unknown>; export interface Rewire { lib(): Record<string, unknown>; isRewired(): boolean; get(name: string): never; safeget(name: string): never; set(name: string, value: unknown): void; restore(): void; } export declare function getLibRewire(libname: string, caller: string): Rewire; export declare function reloadLibRewire(libname: string, caller: string): Rewire; interface AggregationMethod extends anyFunction { origin?: anyFunction; restore?: () => void; } export declare function createAggregation(libname: string, methodName: string): AggregationMethod; export {};