@alphabin/trx
Version:
TRX reporter for Playwright tests with Azure Blob Storage upload support
18 lines (17 loc) • 557 B
TypeScript
import { exec as execCallback } from 'child_process';
/**
* Promisified exec command
*/
export declare const exec: typeof execCallback.__promisify__;
/**
* Executes a command and returns the trimmed stdout output
*/
export declare function execCommand(command: string): Promise<string>;
/**
* Checks if a command exists by running it with --version
*/
export declare function commandExists(command: string): Promise<boolean>;
/**
* Gets environment variable value if it exists
*/
export declare function getEnvVar(name: string): string | undefined;