Unverified Commit cd49df2d authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

disable sub shell generation test outside of adapter (#91353)

These tests have started failing in deploy mode in environments outside
of the new Vercel adapter. Shell related behavior is changing as part of
the new `partialFallbacks` flag and will not be backported to the old
CLI, so this gates the test to ensure it runs in the right deployment
environment.
parent 0e3b35ec
......@@ -3,9 +3,14 @@ import * as cheerio from 'cheerio'
import { getCacheHeader, retry } from 'next-test-utils'
import { computeCacheBustingSearchParam } from 'next/dist/shared/lib/router/utils/cache-busting-search-param'
const isAdapterTest = Boolean(process.env.NEXT_ENABLE_ADAPTER)
describe('middleware-static-rewrite', () => {
const { next, isNextDeploy, isNextDev } = nextTestSetup({
files: __dirname,
// The latest changes to support this behavior on deployed infra are available in the adapter,
// and are not being backported to the CLI
skipDeployment: !isAdapterTest,
})
if (isNextDev) {
......
import { nextTestSetup } from 'e2e-utils'
import * as cheerio from 'cheerio'
const isAdapterTest = Boolean(process.env.NEXT_ENABLE_ADAPTER)
describe('sub-shell-generation', () => {
const { next, isNextDev, isNextDeploy } = nextTestSetup({
files: __dirname,
// The latest changes to support this behavior on deployed infra are available in the adapter,
// and are not being backported to the CLI
skipDeployment: !isAdapterTest,
})
if (isNextDev) {
......
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