(cmd, args)
| 19 | exec('psql', ['-c', 'alter database postgres_js_test owner to postgres_js_test']) |
| 20 | |
| 21 | export function exec(cmd, args) { |
| 22 | const { stderr } = spawnSync(cmd, args, { stdio: 'pipe', encoding: 'utf8' }) |
| 23 | if (stderr && !stderr.includes('already exists') && !stderr.includes('does not exist') && !stderr.includes('WARNING:')) |
| 24 | throw stderr |
| 25 | } |
| 26 | |
| 27 | async function execAsync(cmd, args) { // eslint-disable-line |
| 28 | let stderr = '' |
no outgoing calls
no test coverage detected