UNPKG

@nx/jest

Version:

The Nx Plugin for Jest contains executors and generators allowing your workspace to use the powerful Jest testing capabilities.

18 lines (17 loc) 753 B
import type * as ts from 'typescript'; import { Tree } from '@nx/devkit'; import { Config } from '@jest/types'; export declare function addOrUpdateProperty(tree: Tree, object: ts.ObjectLiteralExpression, properties: string[], value: unknown, path: string): any[]; export declare function removeProperty(object: ts.ObjectLiteralExpression, properties: string[]): ts.PropertyAssignment | null; /** * Should be used to get the jest config object as AST */ export declare function jestConfigObjectAst(fileContent: string): ts.ObjectLiteralExpression; /** * Returns the jest config object * @param host * @param path */ export declare function jestConfigObject(host: Tree, path: string): Partial<Config.InitialOptions> & { [index: string]: any; };