import './patches/jestWorkerPatch'; import type { Config } from '@jest/types'; import type { HeftConfiguration, IHeftTaskPlugin, IHeftTaskSession } from '@rushstack/heft'; import { ProjectConfigurationFile } from '@rushstack/heft-config-file'; /** * Options that can be provided to the plugin. */ export interface IJestPluginOptions { configurationPath?: string; debugHeftReporter?: boolean; detectOpenHandles?: boolean; disableCodeCoverage?: boolean; disableConfigurationModuleResolution?: boolean; enableNodeEnvManagement?: boolean; findRelatedTests?: string[]; maxWorkers?: string; passWithNoTests?: boolean; silent?: boolean; testNamePattern?: string; testPathIgnorePatterns?: string; testPathPattern?: string; testTimeout?: number; updateSnapshots?: boolean; logHeapUsage?: boolean; } export interface IHeftJestConfiguration extends Config.InitialOptions { } export declare const JEST_CONFIG_JSDOM_PACKAGE_NAME: 'jest-environment-jsdom'; /** * @internal */ export default class JestPlugin implements IHeftTaskPlugin { #private; constructor(); static getJestPlugin(object: object): JestPlugin | undefined; /** * Setup the hooks and custom CLI options for the Jest plugin. */ apply(taskSession: IHeftTaskSession, heftConfiguration: HeftConfiguration, pluginOptions?: IJestPluginOptions): void; /** * Returns the loader for the `config/api-extractor-task.json` config file. */ static _getJestConfigurationLoader(buildFolder: string, projectRelativeFilePath: string): ProjectConfigurationFile; } //# sourceMappingURL=JestPlugin.d.ts.map