Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix snapshot replacement #5468

Merged
merged 2 commits into from Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/playwright/test/basic.test.ts
Expand Up @@ -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 () => {
Expand All @@ -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()
})
Expand Down
2 changes: 1 addition & 1 deletion test/reporters/tests/console.test.ts
Expand Up @@ -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
Expand Down