Skip to content

Commit

Permalink
fix: add test helper back (#71495)
Browse files Browse the repository at this point in the history
A test helper was recently deleted that caused a failure for tests:


https://github.com/vercel/next.js/pull/71326/files#diff-89f3ffc2ba61402d4e283e83323169b7b567967666b03b1e3eabca8d87fbcf20L16

This adds the test helper back.
  • Loading branch information
wyattjoh authored Oct 18, 2024
1 parent b7ede27 commit 65211c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/app-dir/dynamic-io/dynamic-io.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/* eslint-disable jest/no-standalone-expect */
import { nextTestSetup } from 'e2e-utils'

const WITH_PPR = !!process.env.__NEXT_EXPERIMENTAL_PPR

describe('dynamic-io', () => {
const { next, isNextDev, skipped } = nextTestSetup({
const { next, isNextDev, isTurbopack, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
Expand All @@ -12,6 +13,8 @@ describe('dynamic-io', () => {
return
}

const itSkipTurbopack = isTurbopack ? it.skip : it

it('should not have route specific errors', async () => {
expect(next.cliOutput).not.toMatch('Error: Route /')
expect(next.cliOutput).not.toMatch('Error occurred prerendering page')
Expand Down

0 comments on commit 65211c1

Please sign in to comment.