From 47a0cac4237745a72d89cb4ef38d5a71a0534c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Fri, 18 Feb 2022 10:29:56 -0500 Subject: [PATCH] fix: wait another 200ms for saving files --- .../babel/dir --out-dir --watch multiple dir/executor.js | 2 ++ 1 file changed, 2 insertions(+) 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();