Skip to content

Commit

Permalink
test: fix snapshot replacement (#5468)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Apr 2, 2024
1 parent 6ae7eaa commit ffec1dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit ffec1dc

Please sign in to comment.