Unverified Commit 76def31f authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

skip ppr throw for tests (#58208)

Follow up to #58203 to skip this in tests to avoid issues once we cut stable
parent 5fe14c42
......@@ -254,7 +254,8 @@ function assignDefaults(
if (
result.experimental?.ppr &&
!process.env.__NEXT_VERSION!.includes('canary')
!process.env.__NEXT_VERSION!.includes('canary') &&
!process.env.__NEXT_TEST_MODE
) {
throw new Error(
`The experimental.ppr preview feature can only be enabled when using the latest canary version of Next.js. See more info here: https://nextjs.org/docs/messages/ppr-preview`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment