Unverified Commit b114f7cf authored by Jamiboy Mohammad's avatar Jamiboy Mohammad Committed by GitHub

test: enable deploy coverage for five verified suites (#99193)

## Summary

Enable deploy testing for five suites: middleware page extensions, mixed
proxy page extensions, false aliases, CSS module ordering, and
conflicting service worker registrations. Their deploy-mode assertions
check served responses, browser-rendered styles, or a specific remote
build failure.

## Verification

The retained changes passed [Turbopack deploy
CI](https://github.com/vercel/next.js/actions/runs/36188078111) at
`293d58d`, including cache-components jobs. Webpack deploy behavior
remains unverified.

Local formatting and ESLint checks passed. The four restored files match
the PR base exactly, and the five retained files are unchanged. A full
local bootstrap could not complete because this worktree lacks
package-level dependencies (`microbundle`).

<!-- NEXT_JS_LLM -->

---------
Co-authored-by: 's avatarClaude Opus 5 <noreply@anthropic.com>
parent 63bb9d6a
...@@ -4,7 +4,6 @@ import { retry } from 'next-test-utils' ...@@ -4,7 +4,6 @@ import { retry } from 'next-test-utils'
describe('middleware-page-extensions', () => { describe('middleware-page-extensions', () => {
const { next } = nextTestSetup({ const { next } = nextTestSetup({
files: __dirname, files: __dirname,
skipDeployment: true,
}) })
it('should execute middleware.page.ts and set custom header', async () => { it('should execute middleware.page.ts and set custom header', async () => {
......
...@@ -3,7 +3,6 @@ import { nextTestSetup } from 'e2e-utils' ...@@ -3,7 +3,6 @@ import { nextTestSetup } from 'e2e-utils'
describe('proxy-mixed-page-extensions', () => { describe('proxy-mixed-page-extensions', () => {
const { next } = nextTestSetup({ const { next } = nextTestSetup({
files: __dirname, files: __dirname,
skipDeployment: true,
}) })
it('should detect proxy.page.tsx when pageExtensions mixes compound and simple', async () => { it('should detect proxy.page.tsx when pageExtensions mixes compound and simple', async () => {
......
...@@ -5,17 +5,12 @@ import { retry } from 'next-test-utils' ...@@ -5,17 +5,12 @@ import { retry } from 'next-test-utils'
;(process.env.IS_TURBOPACK_TEST ? describe : describe.skip)( ;(process.env.IS_TURBOPACK_TEST ? describe : describe.skip)(
'app dir - service worker (multiple registrations error)', 'app dir - service worker (multiple registrations error)',
() => { () => {
const { next, skipped, isNextDev } = nextTestSetup({ const { next, isNextDev } = nextTestSetup({
files: __dirname, files: __dirname,
skipStart: true, skipStart: true,
// This test asserts a build failure. // This test asserts a build failure.
skipDeployment: true,
}) })
if (skipped) {
return
}
it('errors when different service worker files are registered', async () => { it('errors when different service worker files are registered', async () => {
// In production `next.start()` runs the build, which fails. In dev the server // In production `next.start()` runs the build, which fails. In dev the server
// boots and the failure surfaces when the registering page is compiled. // boots and the failure surfaces when the registering page is compiled.
......
...@@ -4,7 +4,6 @@ describe('resolve-alias-false', () => { ...@@ -4,7 +4,6 @@ describe('resolve-alias-false', () => {
const isTurbopack = Boolean(process.env.IS_TURBOPACK_TEST) const isTurbopack = Boolean(process.env.IS_TURBOPACK_TEST)
const { next } = nextTestSetup({ const { next } = nextTestSetup({
files: __dirname, files: __dirname,
skipDeployment: true,
}) })
describe('ESM static imports', () => { describe('ESM static imports', () => {
......
...@@ -22,7 +22,6 @@ describe('Basic CSS Modules Ordering', () => { ...@@ -22,7 +22,6 @@ describe('Basic CSS Modules Ordering', () => {
useLightningcss: true, useLightningcss: true,
}, },
}, },
skipDeployment: true,
}) })
async function checkGreenButton(browser: Playwright) { async function checkGreenButton(browser: Playwright) {
...@@ -92,7 +91,6 @@ describe('Basic CSS Modules Ordering', () => { ...@@ -92,7 +91,6 @@ describe('Basic CSS Modules Ordering', () => {
useLightningcss: false, useLightningcss: false,
}, },
}, },
skipDeployment: true,
}) })
async function checkGreenButton(browser: Playwright) { async function checkGreenButton(browser: Playwright) {
...@@ -163,7 +161,6 @@ describe('Ordering with Global CSS and Modules', () => { ...@@ -163,7 +161,6 @@ describe('Ordering with Global CSS and Modules', () => {
useLightningcss: true, useLightningcss: true,
}, },
}, },
skipDeployment: true,
}) })
;(isNextDev ? it : it.skip)( ;(isNextDev ? it : it.skip)(
...@@ -252,7 +249,6 @@ describe('Ordering with Global CSS and Modules', () => { ...@@ -252,7 +249,6 @@ describe('Ordering with Global CSS and Modules', () => {
useLightningcss: false, useLightningcss: false,
}, },
}, },
skipDeployment: true,
}) })
;(isNextDev ? it : it.skip)( ;(isNextDev ? it : it.skip)(
...@@ -347,7 +343,6 @@ describe('CSS Modules Composes Ordering', () => { ...@@ -347,7 +343,6 @@ describe('CSS Modules Composes Ordering', () => {
useLightningcss: true, useLightningcss: true,
}, },
}, },
skipDeployment: true,
}) })
async function checkBlackTitle(browser: Playwright) { async function checkBlackTitle(browser: Playwright) {
...@@ -507,7 +502,6 @@ describe('CSS Modules Composes Ordering', () => { ...@@ -507,7 +502,6 @@ describe('CSS Modules Composes Ordering', () => {
useLightningcss: false, useLightningcss: false,
}, },
}, },
skipDeployment: true,
}) })
async function checkBlackTitle(browser: Playwright) { async function checkBlackTitle(browser: Playwright) {
......
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