Skip to content

Fix duplicate "is" wording in jest-config displayName validation test#16046

Draft
Bojun-Vvibe wants to merge 1 commit intojestjs:mainfrom
Bojun-Vvibe:agent/jestjs_jest-1776707934
Draft

Fix duplicate "is" wording in jest-config displayName validation test#16046
Bojun-Vvibe wants to merge 1 commit intojestjs:mainfrom
Bojun-Vvibe:agent/jestjs_jest-1776707934

Conversation

@Bojun-Vvibe
Copy link
Copy Markdown

Repo: jestjs/jest (⭐ 44000)
Type: test
Files changed: 3
Lines: +6/-2

What

The displayName validation test in packages/jest-config/src/__tests__/normalize.test.ts uses a test.each template that interpolates a description into the title via displayName is $description. One row supplied 'is an empty object' as the description, producing the title displayName is is an empty object (and a snapshot key with the same duplicated word). This change drops the redundant is from the row so the rendered test name reads naturally, and updates the matching snapshot key in normalize.test.ts.snap. A short CHANGELOG entry under ## main is included.

Why

Pure readability/quality improvement. The duplicated word shows up in test runner output and in the committed snapshot file, where it looks like a typo. The other rows in the same test.each table ('missing color', 'missing name', 'using invalid values') all read correctly when prefixed with is, so the empty-object row is the inconsistent one. Fix is mechanical and risk-free.

Testing

yarn jest packages/jest-config/src/__tests__/normalize.test.ts would re-run the affected describe block. The snapshot key was updated in lockstep with the new test title so the snapshot still matches; the actual snapshot body is unchanged. Did not run the suite locally (would require yarn install + yarn build:js, outside the time budget).

Risk

Low — only touches a test description string, the corresponding snapshot key, and a changelog line. No runtime/library code touched.

@linux-foundation-easycla
Copy link
Copy Markdown

CLA Missing ID CLA Not Signed

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 20, 2026

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit a05b213
🔍 Latest deploy log https://app.netlify.com/projects/jestjs/deploys/69e66967c12c0e0009ad78d6
😎 Deploy Preview https://deploy-preview-16046--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant