Unverified Commit eaf66e8e authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[test] Disable middleware-rewrites deploy test for Turbopack with adapters (#95680)

Co-authored-by: 's avatarNiklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
parent a7bf1202
...@@ -6,6 +6,9 @@ import { check, fetchViaHTTP, retry } from 'next-test-utils' ...@@ -6,6 +6,9 @@ import { check, fetchViaHTTP, retry } from 'next-test-utils'
import { FileRef, nextTestSetup } from 'e2e-utils' import { FileRef, nextTestSetup } from 'e2e-utils'
import escapeStringRegexp from 'escape-string-regexp' import escapeStringRegexp from 'escape-string-regexp'
const isTurbopackTest = Boolean(process.env.IS_TURBOPACK_TEST)
const isAdapterTest = process.env.NEXT_ENABLE_ADAPTER === '1'
describe('Middleware Rewrite', () => { describe('Middleware Rewrite', () => {
const { next, isNextDeploy } = nextTestSetup({ const { next, isNextDeploy } = nextTestSetup({
files: { files: {
...@@ -13,6 +16,8 @@ describe('Middleware Rewrite', () => { ...@@ -13,6 +16,8 @@ describe('Middleware Rewrite', () => {
'next.config.js': new FileRef(join(__dirname, '../app/next.config.js')), 'next.config.js': new FileRef(join(__dirname, '../app/next.config.js')),
'middleware.js': new FileRef(join(__dirname, '../app/middleware.js')), 'middleware.js': new FileRef(join(__dirname, '../app/middleware.js')),
}, },
// FIXME: Fails to deploy
skipDeployment: isAdapterTest && isTurbopackTest,
}) })
function tests() { function tests() {
......
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