diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts index 47ada757e183..afd878f8107e 100644 --- a/packages/astro/src/core/build/static-build.ts +++ b/packages/astro/src/core/build/static-build.ts @@ -420,7 +420,7 @@ async function cleanServerOutput( files.map(async (filename) => { const url = new URL(filename, out); const map = new URL(url + '.map'); - await Promise.all([fs.promises.rm(url), fs.promises.rm(new URL(map)).catch((e) => {})]); + await Promise.all([fs.promises.rm(url), fs.promises.rm(new URL(map)).catch(() => {})]); }), ); diff --git a/packages/astro/test/experimental-content-collections-render.test.js b/packages/astro/test/experimental-content-collections-render.test.js index 9d78eae6d7a5..8d64c32691c6 100644 --- a/packages/astro/test/experimental-content-collections-render.test.js +++ b/packages/astro/test/experimental-content-collections-render.test.js @@ -126,7 +126,7 @@ if (!isWindows) { let found = true; try { await fixture.readFile('content/manifest.json'); - } catch(e) { + } catch { found = false; } assert.equal(found, false, 'manifest not in dist folder');