1 import { exec } from 'child_process'
3 import { ServerInfo } from '../server/servers'
5 function getEnvCli (server?: ServerInfo) {
6 return `NODE_ENV=test NODE_APP_INSTANCE=${server.internalServerNumber}`
9 async function execCLI (command: string) {
10 return new Promise<string>((res, rej) => {
11 exec(command, (err, stdout, stderr) => {
12 if (err) return rej(err)
19 // ---------------------------------------------------------------------------