import { TestSuite , TestParams } from '../core' ; import { spawn } from '../utils' ; const testSuite = async ( { environment , scenario } ) : Promise < void > => { const cliInstallArgs = [ 'install' , '-g' , 'twilio-cli' ] ; if ( ! environment . ignorePrefix ) { cliInstallArgs . push ( `--prefix=${ environment . homeDir }` ) ; } await spawn ( 'npm' , cliInstallArgs ) ; await spawn ( 'twilio' , [ 'plugins:install' , `@twilio-labs/plugin-flex@${ scenario . packageVersion }` ] ) ; } ; testSuite . description = 'Installing Twilio CLI and Plugins CLI' ; export default testSuite ;