UNPKG

@tsdi/unit

Version:

unit testing framework, base on AOP, Ioc container

17 lines (16 loc) 589 B
import { Type } from '@tsdi/ioc'; import { LoadType } from '@tsdi/core'; import { UnitTestConfigure } from './UnitTestConfigure'; export declare class UnitTest { static ρAnn(): any; } /** * unit test. * * @export * @param {(string | Type | (string | Type)[])} src test source. * @param {(string | AppConfigure)} [config] test configure. * @param {...LoadType[]} deps custom set unit test dependencies. * @returns {Promise<any>} */ export declare function runTest(src: string | Type | (string | Type)[], config?: string | UnitTestConfigure, ...deps: LoadType[]): Promise<any>;