Unverified Commit 94eb1376 authored by Jamiboy Mohammad's avatar Jamiboy Mohammad Committed by GitHub

test: clarify dev-only intent of duplicate Sass warning test (#98917)

## Summary

Clarify that the duplicate Sass dependency warning test belongs in
dev-mode coverage. The warning is emitted by `next dev`, which the test
explicitly launches, but the test was previously scheduled only in
production/start-mode jobs.

Use a suite-level `@force-gate dev` in place of the start-mode guards
and deployment skip. This is a test-organization cleanup: the previous
arrangement could exercise the warning correctly, and this change adds
no coverage or Next.js behavior changes. Fixture preparation, warning
assertions, and process cleanup remain unchanged.

## Verification

- Formatting, ESLint, and whitespace checks passed.
- Focused Jest collection confirmed the scope is skipped in start and
deploy modes.
- Dev runtime verification and bootstrap build remain unverified: local
pnpm commands stalled before producing output, including `pnpm
--version`. Direct Jest collection also reported an existing SWC/package
version mismatch. CI must validate the dev-mode execution.

<!-- NEXT_JS_LLM -->
parent 627dcba1
......@@ -1221,14 +1221,13 @@ Next.js Config:
})
})
// @force-gate dev
describe('CLI Usage: duplicate sass dependencies', () => {
const { next, isNextStart, skipped } = nextTestSetup({
const { next } = nextTestSetup({
files: join(__dirname, 'duplicate-sass'),
skipStart: true,
dependencies: reactDependencies,
skipDeployment: true,
})
if (skipped) return
// The original integration test relied on pre-existing fake `sass` and
// `node-sass` modules in `duplicate-sass/node_modules/`. In e2e mode the
......@@ -1236,7 +1235,6 @@ describe('CLI Usage: duplicate sass dependencies', () => {
// `.ignored`, so we recreate the fake modules and reference them in
// `package.json` after install, before running `next dev`.
beforeAll(async () => {
if (!isNextStart) return
const pkg = await next.readJSON('package.json')
pkg.dependencies = {
...pkg.dependencies,
......@@ -1255,7 +1253,7 @@ describe('CLI Usage: duplicate sass dependencies', () => {
)
}
})
;(isNextStart ? test : test.skip)('duplicate sass deps', async () => {
test('duplicate sass deps', async () => {
const port = await findPort()
let output = ''
......
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