Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
shulaoda committed Dec 12, 2024
1 parent 0d84d54 commit e148ce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playground/proxy-bypass/__tests__/proxy-bypass.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test, vi } from 'vitest'
import { browserLogs, page, serverLogs } from '~utils'
import { browserLogs, isServe, page, serverLogs } from '~utils'

test('proxy-bypass', async () => {
await vi.waitFor(() => {
Expand All @@ -12,7 +12,7 @@ test('async-proxy-bypass', async () => {
expect(content).toContain('Hello after 4 ms (async timeout)')
})

test('async-proxy-bypass-with-error', async () => {
test.runIf(isServe)('async-proxy-bypass-with-error', async () => {
await vi.waitFor(() => {
expect(serverLogs.join('\n')).toContain('bypass error')
})
Expand Down

0 comments on commit e148ce1

Please sign in to comment.