UNPKG

@nx-plugins/stryker

Version:

The Nx Plugin for Stryker that contains executors and generators for allowing your workspace to use powerful Stryker mutation testing capabilities.

49 lines (48 loc) 1.57 kB
import { GeneratorCallback, Tree } from '@nrwl/devkit'; import { StrykerGeneratorSchema } from './schema'; export declare type NormalizedSchema = ReturnType<typeof normalizeOptions>; export declare function libraryGenerator(host: Tree, schema: StrykerGeneratorSchema): Promise<GeneratorCallback>; declare function normalizeOptions(host: Tree, options: StrykerGeneratorSchema): { commandRunner: { command: string | { command: string; }; }; tempDirName: string; mutate: string[]; ignorePatterns: string[]; htmlReporter: { fileName: string; }; reporters: string[]; projectRoot: string; projectSourceRoot: string; project: string; coverageAnalysis?: "off" | "all" | "perTest"; logLevel: "off" | "error" | "warn" | "info" | "debug" | "trace"; jsonReporterFileName?: { fileName?: string; }; clearTextReporter?: { allowColor?: boolean; logTests?: boolean; maxTestsToLog?: number; }; testRunner: string; testRunnerNodeArgs?: string; thresholds: { readonly high: 80; readonly break: 50; } | { high?: number; low?: number; break?: number; }; timeoutFactor?: number; timeoutMs?: number; skipPackageJson: boolean; skipFormat: boolean; packageManager: string; }; export default libraryGenerator; export declare const librarySchematic: (generatorOptions: StrykerGeneratorSchema) => (tree: any, context: any) => Promise<any>;