mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 20:13:21 +03:00
b1fbf4b683
Continuation of #6644 Now chromium browser is used in workspaces tests instead of firefox and screenshots after each test are properly saved in one folder when run from IDE and from terminal using `yarn test:e2e` command
14 lines
270 B
TypeScript
14 lines
270 B
TypeScript
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 });
|
|
}
|
|
});
|
|
});
|
|
}
|