@nx/jest
Version:
28 lines (27 loc) • 1.24 kB
TypeScript
import { CreateNodes } from '@nx/devkit';
export interface JestPluginOptions {
targetName?: string;
ciTargetName?: string;
/**
* The name that should be used to group atomized tasks on CI
*/
ciGroupName?: string;
/**
* Whether to use jest-config and jest-runtime are used to load Jest configuration and context.
* Disabling this is much faster but could be less correct since we are using our own config loader
* and test matcher instead of Jest's.
*/
disableJestRuntime?: boolean;
/**
* Whether to use Jest's resolver (jest-resolve) for resolving config file
* references (presets, transforms, setup files, module name mappers, etc.)
* as task inputs. When false, uses path-based classification which is fast
* but cannot follow symlinks or honor custom moduleDirectories/modulePaths.
* Enable this if your config references workspace-linked packages or relies
* on Jest-specific resolution behavior.
* @default true when disableJestRuntime is false, false otherwise
*/
useJestResolver?: boolean;
}
export declare const createNodes: CreateNodes<JestPluginOptions>;
export declare const createNodesV2: CreateNodes<JestPluginOptions>;