From a6a4a66f10d85363b90ff4b7cd5bdd8c2b3c81fb Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Thu, 2 Jan 2025 19:49:55 +0000 Subject: [PATCH] [ci] format --- packages/astro/e2e/actions-blog.test.js | 2 +- packages/astro/e2e/actions-react-19.test.js | 2 +- packages/astro/src/content/content-layer.ts | 1 - packages/astro/src/core/dev/dev.ts | 1 - packages/astro/test/test-utils.js | 2 +- 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/astro/e2e/actions-blog.test.js b/packages/astro/e2e/actions-blog.test.js index 03e0c20575..f043bcb4a5 100644 --- a/packages/astro/e2e/actions-blog.test.js +++ b/packages/astro/e2e/actions-blog.test.js @@ -23,7 +23,7 @@ test.describe('Astro Actions - Blog', () => { await page.goto(astro.resolveUrl('/blog/first-post/')); const likeButton = page.getByLabel('Like'); await waitForHydrate(page, likeButton); - await new Promise(resolve => setTimeout(resolve, 500)) + await new Promise((resolve) => setTimeout(resolve, 500)); await expect(likeButton, 'like button starts with 10 likes').toContainText('10'); await likeButton.click(); await expect(likeButton, 'like button should increment likes').toContainText('11'); diff --git a/packages/astro/e2e/actions-react-19.test.js b/packages/astro/e2e/actions-react-19.test.js index d0274e43f2..2a26a07db8 100644 --- a/packages/astro/e2e/actions-react-19.test.js +++ b/packages/astro/e2e/actions-react-19.test.js @@ -23,7 +23,7 @@ test.describe('Astro Actions - React 19', () => { await page.goto(astro.resolveUrl('/blog/first-post/')); const likeButton = page.getByLabel('likes-client'); await waitForHydrate(page, likeButton); - await new Promise(resolve => setTimeout(resolve, 500)) + await new Promise((resolve) => setTimeout(resolve, 500)); await expect(likeButton).toBeVisible(); await likeButton.click(); diff --git a/packages/astro/src/content/content-layer.ts b/packages/astro/src/content/content-layer.ts index f1cad4a348..a544d5304b 100644 --- a/packages/astro/src/content/content-layer.ts +++ b/packages/astro/src/content/content-layer.ts @@ -20,7 +20,6 @@ import { getEntryConfigByExtMap, getEntryDataAndImages, globalContentConfigObserver, - reloadContentConfigObserver, safeStringify, } from './utils.js'; diff --git a/packages/astro/src/core/dev/dev.ts b/packages/astro/src/core/dev/dev.ts index 03cd8ae391..31b677ef84 100644 --- a/packages/astro/src/core/dev/dev.ts +++ b/packages/astro/src/core/dev/dev.ts @@ -134,7 +134,6 @@ export default async function dev(inlineConfig: AstroInlineConfig): Promise setTimeout(resolve, 100)) + await new Promise((resolve) => setTimeout(resolve, 100)); return devServer; }, onNextDataStoreChange: (timeout = 5000) => {