diff options
author | 2023-04-03 18:11:14 -0700 | |
---|---|---|
committer | 2023-04-03 18:11:14 -0700 | |
commit | ae849528b85cb2531432b5e265ae4e6d9179f624 (patch) | |
tree | e98c89c137bc7cb39ce254c39cf0e98a976b8df5 | |
parent | 6a66fffd399e50c215769b6241cce6bb73d18f04 (diff) | |
download | bun-ae849528b85cb2531432b5e265ae4e6d9179f624.tar.gz bun-ae849528b85cb2531432b5e265ae4e6d9179f624.tar.zst bun-ae849528b85cb2531432b5e265ae4e6d9179f624.zip |
Fix test failure
-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, |