UNPKG

398 BTypeScriptView Raw
1import type { Config } from '@jest/types';
2import type { CompilerOptions } from 'typescript';
3type TsPathMapping = Exclude<CompilerOptions['paths'], undefined>;
4type JestPathMapping = Config.InitialOptions['moduleNameMapper'];
5export declare const pathsToModuleNameMapper: (mapping: TsPathMapping, { prefix, useESM }?: {
6 prefix?: string;
7 useESM?: boolean;
8}) => JestPathMapping;
9export {};