twenty/packages/twenty-e2e-testing/drivers/shell_driver.ts

14 lines
270 B
TypeScript
Raw Normal View History

import { exec } from 'child_process';
export async function sh(cmd) {
return new Promise((resolve, reject) => {
exec(cmd, (err, stdout, stderr) => {
if (err) {
reject(err);
} else {
resolve({ stdout, stderr });
}
});
});
}