Unverified Commit c92542c9 authored by Hendrik Liebau's avatar Hendrik Liebau Committed by GitHub

[test] Fix Webpack deployment failures in PostCSS tests (#98710)

#98527 enabled deployment coverage for a Turbopack-only fixture, but
`skipStart` did not prevent deployment during `setup()`. The suite now
uses `@force-gate turbopack` to skip setup for other bundlers while
preserving Turbopack deployment coverage.

This fixes the failure in
https://github.com/vercel/next.js/actions/runs/35037213782/job/104625995824.
parent 52788bdf
import { nextTestSetup } from 'e2e-utils'
// Per-directory PostCSS config resolution is a Turbopack-only feature
// (turbopackLocalPostcssConfig). Webpack does not support this feature and does
// not accept function-valued PostCSS plugins, so skip non-Turbopack runs.
// @force-gate turbopack
describe('turbopack-postcss-multiple-configs', () => {
const { next, isTurbopack } = nextTestSetup({
const { next } = nextTestSetup({
files: __dirname,
// Per-directory PostCSS config resolution is a Turbopack-only feature
// (turbopackLocalPostcssConfig). Webpack does not support this feature and
// does not accept function-valued PostCSS plugins, so skip non-Turbopack runs.
skipStart: true,
})
if (!isTurbopack) {
it('should only run with Turbopack', () => {})
return
}
beforeAll(async () => {
await next.start()
})
// Each directory's postcss.config.js passes a unique color option to the
......
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