UNPKG

dt-app

Version:

The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.

22 lines (21 loc) 918 B
import { type TreeNode } from '../utils/layout'; /** Create test script for a function */ export declare function generateFunctionTest(options: { /** Has the name of the function. Can also be a path with the name (e.g functions/hello) */ name: string; /** Specifies in which folder the function is located in */ functionsDir: string; /** Has the current working directory */ cwd: string; /** Whether to write to the filesystem or not */ dryRun?: boolean; }): Promise<TreeNode[]>; /** Create test scripts for all functions that do not have a matching *.test.ts file yet */ export declare function generateMissingFunctionTests(options: { /** Specifies in which folder the function is located in */ functionsDir: string; /** Has the current working directory */ cwd: string; /** Whether to write to the filesystem or not */ dryRun?: boolean; }): Promise<string[]>;