UNPKG

create-testplane

Version:

A tool for fast and simple Testplane configuration

21 lines (20 loc) 1.26 kB
import type { ConfigNote } from "../plugins"; import type { ToolArgv } from "../types/toolArgv"; import type { ArgvOpts, HandleGeneralPromptsCallback } from "../types/toolOpts"; import type { TestplaneConfig, Language } from "../types"; export { inquirerPrompt } from "./inquirer"; export declare const optsFromArgv: (argv: ToolArgv) => ArgvOpts; export declare const packageNameFromPlugin: (plugin: string) => string; export declare const baseGeneralPromptsHandler: HandleGeneralPromptsCallback; export declare const printSuccessMessage: (configNotes: ConfigNote[]) => void; export declare const writeTestExample: (dirPath: string, ext: Language) => Promise<void>; type VariableOpts = { name: string; value: string; isExpr?: boolean; }; export declare const defineVariable: (config: TestplaneConfig, { name, value, isExpr }: VariableOpts) => TestplaneConfig; export declare const addModule: (config: TestplaneConfig, variableName: string, moduleName?: string) => TestplaneConfig; export declare const asExpression: (value: string) => string; export declare const connectTestingLibraryToTestplaneConfig: (config: TestplaneConfig) => void; export declare const extendWithTypescript: (packageNamesToInstall: string[], appPath: string) => Promise<void>;