aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar JP Wienekus <ascorbic@users.noreply.github.com> 2025-05-21 14:43:57 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2025-05-21 14:43:57 +0000
commitc5860b501adede756bb19ed51f59b0bacfa2248e (patch)
tree2981a8e657d9ac25e282ba66778fed2f9a23c8cf
parent50ef568413b5fe7add36c089b77f9f180739f43f (diff)
downloadastro-c5860b501adede756bb19ed51f59b0bacfa2248e.tar.gz
astro-c5860b501adede756bb19ed51f59b0bacfa2248e.tar.zst
astro-c5860b501adede756bb19ed51f59b0bacfa2248e.zip
[ci] format
-rw-r--r--packages/astro/e2e/dev-toolbar.test.js8
-rw-r--r--packages/integrations/node/src/preview.ts5
2 files changed, 8 insertions, 5 deletions
diff --git a/packages/astro/e2e/dev-toolbar.test.js b/packages/astro/e2e/dev-toolbar.test.js
index aa0368094..3710eb8e4 100644
--- a/packages/astro/e2e/dev-toolbar.test.js
+++ b/packages/astro/e2e/dev-toolbar.test.js
@@ -266,11 +266,11 @@ test.describe('Dev Toolbar', () => {
const auditCanvas = toolbar.locator('astro-dev-toolbar-app-canvas[data-app-id="astro:audit"]');
const auditHighlights = auditCanvas.locator('astro-dev-toolbar-highlight');
- const highlight = auditHighlights.nth(1)
+ const highlight = auditHighlights.nth(1);
- await expect(async() => {
- await highlight.hover({timeout: 100});
- }).rejects.toThrowError()
+ await expect(async () => {
+ await highlight.hover({ timeout: 100 });
+ }).rejects.toThrowError();
});
test('can open Settings app', async ({ page, astro }) => {
diff --git a/packages/integrations/node/src/preview.ts b/packages/integrations/node/src/preview.ts
index 938214c3e..8e4d565f1 100644
--- a/packages/integrations/node/src/preview.ts
+++ b/packages/integrations/node/src/preview.ts
@@ -21,7 +21,10 @@ const createPreviewServer: CreatePreviewServer = async (preview) => {
);
}
} catch (err) {
- if ((err as any).code === 'ERR_MODULE_NOT_FOUND' && (err as any).url === preview.serverEntrypoint.href) {
+ if (
+ (err as any).code === 'ERR_MODULE_NOT_FOUND' &&
+ (err as any).url === preview.serverEntrypoint.href
+ ) {
throw new AstroError(
`The server entrypoint ${fileURLToPath(
preview.serverEntrypoint,