Skip to content

Commit cd49df2

Browse files
authored
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.
1 parent 0e3b35e commit cd49df2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

test/e2e/app-dir/sub-shell-generation-middleware/sub-shell-generation-middleware.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ import * as cheerio from 'cheerio'
33
import { getCacheHeader, retry } from 'next-test-utils'
44
import { computeCacheBustingSearchParam } from 'next/dist/shared/lib/router/utils/cache-busting-search-param'
55

6+
const isAdapterTest = Boolean(process.env.NEXT_ENABLE_ADAPTER)
7+
68
describe('middleware-static-rewrite', () => {
79
const { next, isNextDeploy, isNextDev } = nextTestSetup({
810
files: __dirname,
11+
// The latest changes to support this behavior on deployed infra are available in the adapter,
12+
// and are not being backported to the CLI
13+
skipDeployment: !isAdapterTest,
914
})
1015

1116
if (isNextDev) {

test/e2e/app-dir/sub-shell-generation/sub-shell-generation.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
import { nextTestSetup } from 'e2e-utils'
22
import * as cheerio from 'cheerio'
33

4+
const isAdapterTest = Boolean(process.env.NEXT_ENABLE_ADAPTER)
5+
46
describe('sub-shell-generation', () => {
57
const { next, isNextDev, isNextDeploy } = nextTestSetup({
68
files: __dirname,
9+
// The latest changes to support this behavior on deployed infra are available in the adapter,
10+
// and are not being backported to the CLI
11+
skipDeployment: !isAdapterTest,
712
})
813

914
if (isNextDev) {

0 commit comments

Comments
 (0)