@nx/jest
Version:
10 lines (9 loc) • 655 B
TypeScript
import { type Tree } from '@nx/devkit';
export declare const jestConfigExtensions: readonly ['js', 'ts', 'mjs', 'cjs', 'mts', 'cts'];
export type JestConfigExtension = (typeof jestConfigExtensions)[number];
export declare const jestPresetExtensions: readonly ['js', 'cjs', 'mjs'];
export type JestPresetExtension = (typeof jestPresetExtensions)[number];
export declare function getPresetExt(tree: Tree): JestPresetExtension;
export declare function findRootJestConfig(tree: Tree): string | null;
export declare function findJestConfig(tree: Tree, projectPath: string): string | null;
export declare function findRootJestPreset(tree: Tree): string | null;