UNPKG

codeceptjs-cmdhelper

Version:

Let your CodeceptJS tests run commands in the console/terminal

26 lines (23 loc) 747 B
export = CmdHelper; /** * Command helper * * @author Thiago Delgado Pinto */ declare class CmdHelper { /** * Constructor * * @param {object} config Configuration declared in the CodeceptJS configuration file. */ constructor(config: object); /** * Executes the given command. * * @param {string} command Command to execute. * @param {object} [options] Same options as in NodeJS' spawn(), plus `showOutput: boolean`. Optional. Default is `{ shell: true, showOutput: true }`. * * @returns {Promise< number >} Promise with the returning execution status code (0 means success). */ runCommand(command: string, options?: object): Promise< number >; }