UNPKG

748 BTypeScriptView Raw
1import * as ts from 'typescript';
2import { Tree } from '@nrwl/devkit';
3import { Config } from '@jest/types';
4export declare function addOrUpdateProperty(tree: Tree, object: ts.ObjectLiteralExpression, properties: string[], value: unknown, path: string): any;
5export declare function removeProperty(object: ts.ObjectLiteralExpression, properties: string[]): ts.PropertyAssignment | null;
6/**
7 * Should be used to get the jest config object as AST
8 */
9export declare function jestConfigObjectAst(fileContent: string): ts.ObjectLiteralExpression;
10/**
11 * Returns the jest config object
12 * @param host
13 * @param path
14 */
15export declare function jestConfigObject(host: Tree, path: string): Partial<Config.InitialOptions> & {
16 [index: string]: any;
17};