Skip to content

Migrate from Jest to Vitest - #9151

Merged
anselmbradford merged 6 commits into
mainfrom
ans_migrate_to_vitest
Aug 6, 2026
Merged

Migrate from Jest to Vitest#9151
anselmbradford merged 6 commits into
mainfrom
ans_migrate_to_vitest

Conversation

@anselmbradford

Copy link
Copy Markdown
Member

Jest is outdated and there's some work to move it to v30.x. This PR migrates it to Vitest instead to align with other bureau repos.

Changes

  • Migrate from Jest to Vitest.
  • Separate linter command out of yarn test.

How to test this PR

  1. yarn test should pass.

@anselmbradford
anselmbradford force-pushed the ans_migrate_to_vitest branch 2 times, most recently from aaff6a1 to 390e2ea Compare August 5, 2026 21:05
@anselmbradford
anselmbradford requested a review from wpears August 5, 2026 21:08
@anselmbradford
anselmbradford force-pushed the ans_migrate_to_vitest branch from 390e2ea to e63ed43 Compare August 5, 2026 21:09
@wpears

wpears commented Aug 5, 2026

Copy link
Copy Markdown
Member

Registering my excitement about this! I'll get eyes on it asap

@wpears wpears left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprisingly clean transition! Just found a few nubbins here and there.

I assume our style of testing might get a little nicer in the future as well, but no need to force that through now.

Comment thread docs/javascript-unit-tests.md Outdated
Comment thread docs/javascript-unit-tests.md Outdated
Comment thread docs/javascript-unit-tests.md Outdated
Comment thread vitest.config.js Outdated
anselmbradford and others added 4 commits August 6, 2026 08:57
Co-authored-by: Wyatt Pearsall <wyatt.pearsall@cfpb.gov>
Co-authored-by: Wyatt Pearsall <wyatt.pearsall@cfpb.gov>
Co-authored-by: Wyatt Pearsall <wyatt.pearsall@cfpb.gov>
Co-authored-by: Wyatt Pearsall <wyatt.pearsall@cfpb.gov>
@anselmbradford
anselmbradford added this pull request to the merge queue Aug 6, 2026
Merged via the queue into main with commit 67bb6d6 Aug 6, 2026
10 of 11 checks passed
@anselmbradford
anselmbradford deleted the ans_migrate_to_vitest branch August 6, 2026 13:11
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.

2 participants