diff --git a/examples/playwright/test/basic.test.ts b/examples/playwright/test/basic.test.ts index 4c6631c55b81..ba546c93cbe2 100644 --- a/examples/playwright/test/basic.test.ts +++ b/examples/playwright/test/basic.test.ts @@ -5,7 +5,7 @@ import { chromium } from 'playwright' import type { Browser, Page } from 'playwright' import { expect } from '@playwright/test' -const PORT = 3001 +const PORT = 3989 // unstable in Windows, TODO: investigate describe.runIf(process.platform !== 'win32')('basic', async () => { @@ -14,7 +14,7 @@ describe.runIf(process.platform !== 'win32')('basic', async () => { let page: Page beforeAll(async () => { - server = await preview({ preview: { port: PORT } }) + server = await preview({ preview: { port: PORT, strictPort: true } }) browser = await chromium.launch({ headless: true }) page = await browser.newPage() }) diff --git a/test/reporters/tests/console.test.ts b/test/reporters/tests/console.test.ts index 5c942c5c0b8a..8e965ee3ee94 100644 --- a/test/reporters/tests/console.test.ts +++ b/test/reporters/tests/console.test.ts @@ -9,7 +9,7 @@ test('should print logs correctly', async () => { expect(stdout).toBeTruthy() expect(stderr).toBeTruthy() - expect(stdout.replace('\n ✓ console.test.ts > suite > snested suite > test', '')).toContain( + expect(stdout.replace('\n ✓ console.test.ts > suite > nested suite > test', '')).toContain( ` stdout | console.test.ts > suite > nested suite beforeAll