summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2022-12-08 13:14:30 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-12-08 13:14:30 +0000
commitbe26e36e1199006c4dd35aa889ba43a00f1518e8 (patch)
treed4a4c3d364eb89b335992673a6b1540de72d5193
parent2c836b9d1283a0707128d172e92ee2bba767486c (diff)
downloadastro-be26e36e1199006c4dd35aa889ba43a00f1518e8.tar.gz
astro-be26e36e1199006c4dd35aa889ba43a00f1518e8.tar.zst
astro-be26e36e1199006c4dd35aa889ba43a00f1518e8.zip
[ci] format
-rw-r--r--packages/astro/src/core/errors/dev/utils.ts5
-rw-r--r--packages/astro/test/ssr-params.test.js1
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/astro/src/core/errors/dev/utils.ts b/packages/astro/src/core/errors/dev/utils.ts
index 6bcdaba6e..7ee90115c 100644
--- a/packages/astro/src/core/errors/dev/utils.ts
+++ b/packages/astro/src/core/errors/dev/utils.ts
@@ -20,7 +20,10 @@ export const incompatPackageExp = new RegExp(`(${Object.keys(incompatiblePackage
* Useful for consistent reporting regardless of where the error surfaced from.
*/
export function collectErrorMetadata(e: any, rootFolder?: URL | undefined): ErrorWithMetadata {
- const err = AggregateError.is(e) || Array.isArray((e as any).errors) ? (e.errors as SSRError[]) : [e as SSRError];
+ const err =
+ AggregateError.is(e) || Array.isArray((e as any).errors)
+ ? (e.errors as SSRError[])
+ : [e as SSRError];
err.forEach((error) => {
if (error.stack) {
diff --git a/packages/astro/test/ssr-params.test.js b/packages/astro/test/ssr-params.test.js
index 93e5f956b..37155425e 100644
--- a/packages/astro/test/ssr-params.test.js
+++ b/packages/astro/test/ssr-params.test.js
@@ -26,5 +26,4 @@ describe('Astro.params in SSR', () => {
const $ = cheerio.load(html);
expect($('.category').text()).to.equal('food');
});
-
});