Skip to content

test: Replace help text integration tests with insta snapshots#11911

Merged
anthonyshew merged 1 commit intomainfrom
shew/use-insta-help-snapshots
Feb 19, 2026
Merged

test: Replace help text integration tests with insta snapshots#11911
anthonyshew merged 1 commit intomainfrom
shew/use-insta-help-snapshots

Conversation

@anthonyshew
Copy link
Contributor

Summary

  • Deletes turbo-help.t (540 lines of inline expected help text) and trims no-args.t (~120 lines of duplicated help text)
  • Adds 6 insta snapshot tests for CLI help output (turbo -h, turbo --help, turbo link -h, turbo unlink -h, turbo login -h, turbo logout -h)
  • Help text changes can now be reviewed and accepted with cargo insta review instead of manually updating prysk test files

Testing

cargo test -p turborepo-lib --lib "_help"

@vercel
Copy link
Contributor

vercel bot commented Feb 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
examples-basic-web Ready Ready Preview, Comment, Open in v0 Feb 19, 2026 4:03pm
examples-designsystem-docs Ready Ready Preview, Comment, Open in v0 Feb 19, 2026 4:03pm
examples-gatsby-web Ready Ready Preview, Comment, Open in v0 Feb 19, 2026 4:03pm
examples-kitchensink-blog Ready Ready Preview, Comment, Open in v0 Feb 19, 2026 4:03pm
examples-nonmonorepo Ready Ready Preview, Comment, Open in v0 Feb 19, 2026 4:03pm
examples-svelte-web Ready Ready Preview, Comment, Open in v0 Feb 19, 2026 4:03pm
examples-tailwind-web Ready Ready Preview, Comment, Open in v0 Feb 19, 2026 4:03pm
examples-vite-web Ready Ready Preview, Comment, Open in v0 Feb 19, 2026 4:03pm
turbo-site Ready Ready Preview, Comment, Open in v0 Feb 19, 2026 4:03pm
turborepo-agents Ready Ready Preview, Comment, Open in v0 Feb 19, 2026 4:03pm
turborepo-test-coverage Ready Ready Preview, Comment, Open in v0 Feb 19, 2026 4:03pm

@github-actions
Copy link
Contributor

github-actions bot commented Feb 19, 2026

Coverage Report

Metric Coverage
Lines 74.47%
Functions 46.56%
Branches 0.00%

View full report

The prysk integration tests for CLI help text (turbo-help.t at 540 lines,
plus ~120 lines in no-args.t) required manually updating hundreds of lines
of inline expected output whenever any CLI option changed. Replace them with
6 insta snapshot tests that can be updated with `cargo insta review`.
@anthonyshew anthonyshew force-pushed the shew/use-insta-help-snapshots branch from f8af1de to a87844c Compare February 19, 2026 16:02
@anthonyshew anthonyshew merged commit d49dbd5 into main Feb 19, 2026
103 checks passed
@anthonyshew anthonyshew deleted the shew/use-insta-help-snapshots branch February 19, 2026 16:27
github-actions bot added a commit that referenced this pull request Feb 19, 2026
## Release v2.8.11-canary.7

Versioned docs: https://v2-8-11-canary-7.turborepo.dev

### Changes

- release(turborepo): 2.8.11-canary.6 (#11913) (`835048d`)
- test: Replace help text integration tests with insta snapshots
(#11911) (`d49dbd5`)

---------

Co-authored-by: Turbobot <turbobot@vercel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments