UNPKG

995 BTypeScriptView Raw
1import { Tree } from '@nrwl/devkit';
2/**
3 * Add a property to the jest config
4 * @param host
5 * @param path - path to the jest config file
6 * @param propertyName - Property to update. Can be dot delimited to access deeply nested properties
7 * @param value
8 * @param options - set `valueAsString` option to true if the `value` being passed represents a string of the code that should be associated with the `propertyName`
9 */
10export declare function addPropertyToJestConfig(host: Tree, path: string, propertyName: string, value: unknown, options?: {
11 valueAsString: boolean;
12}): void;
13/**
14 * Remove a property value from the jest config
15 * @param host
16 * @param path
17 * @param propertyName - Property to remove. Can be dot delimited to access deeply nested properties
18 */
19export declare function removePropertyFromJestConfig(host: Tree, path: string, propertyName: string): void;
20export declare function addImportStatementToJestConfig(host: Tree, path: string, importStatement: string): void;