summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/e2e/astro-component.test.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/astro/e2e/astro-component.test.js b/packages/astro/e2e/astro-component.test.js
index 5dcf2daea..8a6870d57 100644
--- a/packages/astro/e2e/astro-component.test.js
+++ b/packages/astro/e2e/astro-component.test.js
@@ -45,12 +45,18 @@ test.describe('Astro component HMR', () => {
// https://github.com/withastro/astro/issues/3424
const it = os.platform() === 'win32' ? test.skip : test;
it('hoisted scripts', async ({ page, astro }) => {
- const initialLog = page.waitForEvent('console', (message) => message.text() === 'Hello, Astro!');
+ const initialLog = page.waitForEvent(
+ 'console',
+ (message) => message.text() === 'Hello, Astro!'
+ );
await page.goto(astro.resolveUrl('/'));
await initialLog;
- const updatedLog = page.waitForEvent('console', (message) => message.text() === 'Hello, updated Astro!');
+ const updatedLog = page.waitForEvent(
+ 'console',
+ (message) => message.text() === 'Hello, updated Astro!'
+ );
// Edit the hoisted script on the page
await astro.editFile('./src/pages/index.astro', (content) =>