UNPKG

ts-node-test-register

Version:

Load from `test/tsconfig.json` with ts-node.

25 lines (24 loc) 684 B
/** * get "test" dir * "directories": { * "lib": "lib", * "test": "test" * }, * * @param {string} currentDir */ export declare const getTestDirectoryInPackageJSON: (currentDir?: string | undefined) => string | undefined; export declare const resolvePath: (filePathList: string[]) => string | undefined; /** * Find tsconfig.json by follows * * 1. test/tsconfig.test.json * 2. test/tsconfig.json * 3. tsconfig.test.json * 4. tsconfig.json * * @param {string} testDirectoryName * @param {string} baseDirectory * @returns {string | undefined} */ export declare const findTestTsconfigJSON: (testDirectoryName?: string, baseDirectory?: string) => string | undefined;