diff options
-rw-r--r-- | test/cli/install/bun-install.test.ts | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/test/cli/install/bun-install.test.ts b/test/cli/install/bun-install.test.ts index 83bdf717f..a5a7c9057 100644 --- a/test/cli/install/bun-install.test.ts +++ b/test/cli/install/bun-install.test.ts @@ -3100,21 +3100,24 @@ cache = false ); await access(join(package_dir, "bun.lockb")); // Perform `bun install` again but with cache & lockfile from before - [ - ".bin", - "camel-case", - "clean-css", - "commander", - "he", - "html-minifier", - "lower-case", - "no-case", - "param-case", - "relateurl", - "source-map", - "uglify-js", - "upper-case", - ].forEach(async dir => await rm(join(package_dir, "node_modules", dir), { force: true, recursive: true })); + await Promise.all( + [ + ".bin", + "camel-case", + "clean-css", + "commander", + "he", + "html-minifier", + "lower-case", + "no-case", + "param-case", + "relateurl", + "source-map", + "uglify-js", + "upper-case", + ].map(async dir => await rm(join(package_dir, "node_modules", dir), { force: true, recursive: true })), + ); + urls.length = 0; const { stdout: stdout3, |