Skip to content

test: use verb-first test titles - #3507

Merged
setchy merged 1 commit into
mainfrom
test/normalize-test-titles
Oct 25, 2026
Merged

setchy merged 1 commit into
mainfrom
test/normalize-test-titles

Conversation

@setchy

@setchy setchy commented Oct 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Convert the remaining should … test titles to third-person, verb-first names (renders…, returns…, does not…).
  • Normalize the few verb-phrase describe blocks the same way.
  • Regenerate snapshot keys affected by the test-name changes.

Why

The suite already overwhelmingly used verb-first names (~1,214 titles) with 419 should … outliers. This makes the convention consistent and reads naturally with it: “it renders…”, “it returns…”. No test behaviour or assertions changed.

Verification

  • pnpm test: 200 files, 1,968 tests passed
  • pnpm exec vp check --no-fmt: 465 files passed
  • No remaining should … test titles

Notes

Snapshot titles are part of the stored keys, so the affected .snap files were regenerated. The diff is otherwise mechanical.

Replace the remaining should-prefixed titles with third-person verb-first names, matching the existing majority. Regenerate snapshot keys affected by the rename.
@setchy
setchy requested a review from afonsojramos as a code owner October 25, 2026 14:15
@github-actions github-actions Bot added the test Enhancements to test coverage or quality label Oct 25, 2026
@setchy
setchy merged commit 09670b5 into main Oct 25, 2026
15 checks passed
@setchy
setchy deleted the test/normalize-test-titles branch October 25, 2026 14:17
@github-actions github-actions Bot added this to the Release 7.11.0 milestone Oct 25, 2026
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in Gitify v8.0.0! 🎉

Downloads for macOS, Windows, and Linux are available on the release page.

Thanks for helping make Gitify better!

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

Labels

test Enhancements to test coverage or quality

Development

Successfully merging this pull request may close these issues.

1 participant