diff --git a/test/runner/run_workers_test.js b/test/runner/run_workers_test.js index 6a5d2abe0..a724b171e 100644 --- a/test/runner/run_workers_test.js +++ b/test/runner/run_workers_test.js @@ -175,7 +175,7 @@ describe('CodeceptJS Workers Runner', function () { let createdOutput = false if (fs.existsSync(outputDir)) { - fs.rmdirSync(outputDir, { recursive: true }) + fs.rmSync(outputDir, { recursive: true, force: true }) } if (!semver.satisfies(process.version, '>=11.7.0')) this.skip('not for node version')