diff --git a/packages/babel-cli/test/fixtures/babel/dir --out-dir --watch multiple dir/executor.js b/packages/babel-cli/test/fixtures/babel/dir --out-dir --watch multiple dir/executor.js index 1d480afb2637..51a279f82e14 100644 --- a/packages/babel-cli/test/fixtures/babel/dir --out-dir --watch multiple dir/executor.js +++ b/packages/babel-cli/test/fixtures/babel/dir --out-dir --watch multiple dir/executor.js @@ -16,6 +16,8 @@ const run = (async function* () { ); assert.match(yield, /Successfully compiled 1 file with Babel \(\d+ms\)\./); + // wait 200ms for compiled file saved to fs + await new Promise(resolve => setTimeout(resolve, 200)); })(); run.next();