I have the following test, but I can't seem to get Jest to wait for my exec call to finish running:
var exec = require('child_process').exec
test('render', async () => {
await exec('./render.local.sh', (err, out) => {
console.log(err, out)
expect(...some file to be created)
});
})
What should I do to make jest wait for the exec callback to be called?