Skip to content

test: organize terminal and Vitest snapshots and unify their refresh commands - #1737

Merged
John-David Dalton (jdalton) merged 2 commits into
v1.xfrom
test/native-terminal-snapshots-v1x
Nov 19, 2026
Merged

John-David Dalton (jdalton) merged 2 commits into
v1.xfrom
test/native-terminal-snapshots-v1x

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Refresh terminal screenshots and Vitest unit snapshots together with pnpm run snapshots:refresh. To refresh one suite, run pnpm run snapshots:termless:refresh or pnpm run snapshots:vite:refresh.

  • Find terminal images in test/snapshots/termless/ by test file, case, and checkpoint. Vitest text snapshots mirror their test paths under test/snapshots/vite/.
  • Verify that Termless captures both screens of a node -e fixture: the prompt before Enter and the confirmation afterward.

@cursor

cursor Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Test infrastructure and snapshot layout only; no production CLI, auth, or release behavior changes beyond developer workflows.

Overview
Reorganizes terminal screenshot baselines under test/snapshots/termless/ with filenames keyed by test file, flow, and checkpoint (replacing test/native-snapshots), and pins Vitest file snapshots under test/snapshots/vite/ via shared resolveSnapshotPath on all Vitest configs.

Snapshot maintenance moves to scripts/refresh/ with renamed npm scripts: snapshots:termless:refresh, snapshots:vite:refresh, snapshots:refresh, and snapshots:refresh:dep. The terminal Vitest lane now includes test/e2e/termless.test.mts (vterm PTY fixture) and test/termless/**, and wires --update through SOCKET_CLI_NATIVE_TEST_UPDATE_SNAPSHOTS.

Test helpers are consolidated under test/lib/termless/ (animation.mts, svgo.mts), dependency stale checks point at the new SVG paths, and @termless/vterm is added for the e2e capture. Repo hygiene updates include a broad !/test/** gitignore allowlist and generated binary attributes under test/snapshots/.

Reviewed by Cursor Bugbot for commit f5903d1. Configure here.

@socket-security

socket-security Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​termless/​vterm@​0.11.0781006990100

View full report

@socket-security-staging

socket-security-staging Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​termless/​vterm@​0.11.0781006989100

View full report

@socket-security-staging

socket-security-staging Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Priority Alert  (click "▶" to expand/collapse) Action
Low priority
Low adoption: npm @termless/vterm

Location: Package overview

From: package.json → npm/@termless/vterm@0.11.0

ℹ Read more on: This package | This alert | What are unpopular packages?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Unpopular packages may have less maintenance and contain other problems.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity-Staging ignore npm/@termless/vterm@0.11.0. You can also ignore all packages with @SocketSecurity-Staging ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn

View full report

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread test/terminal-animation.mts Resolved
Comment thread test/e2e/termless-snapshots.test.mts Resolved
Comment thread test/utils/terminal-animation.mts Resolved
@jdalton
John-David Dalton (jdalton) force-pushed the test/native-terminal-snapshots-v1x branch 4 times, most recently from 1b509fb to daed415 Compare November 18, 2026 20:24
@jdalton John-David Dalton (jdalton) changed the title test: add native terminal SVG snapshots test: add Termless snapshots for a PTY session Nov 18, 2026
@jdalton
John-David Dalton (jdalton) force-pushed the test/native-terminal-snapshots-v1x branch 9 times, most recently from 4115531 to ce34050 Compare November 18, 2026 21:16
@jdalton John-David Dalton (jdalton) changed the title test: add Termless snapshots for a PTY session test: organize snapshots and verify Termless captures keyboard input Nov 18, 2026
@jdalton John-David Dalton (jdalton) changed the title test: organize snapshots and verify Termless captures keyboard input test: organize snapshots and verify terminal output after Enter Nov 18, 2026
@jdalton
John-David Dalton (jdalton) force-pushed the test/native-terminal-snapshots-v1x branch 6 times, most recently from 2bfb84e to 2560f5d Compare November 18, 2026 23:39
@jdalton
John-David Dalton (jdalton) force-pushed the test/native-terminal-snapshots-v1x branch from 2560f5d to f5903d1 Compare November 18, 2026 23:44
@jdalton John-David Dalton (jdalton) changed the title test: organize snapshots and verify terminal output after Enter test: organize terminal and Vitest snapshots and unify their refresh commands Nov 18, 2026
@vasco-santos

Copy link
Copy Markdown

bugbot review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit f5903d1. Configure here.

@jdalton
John-David Dalton (jdalton) merged commit 372011a into v1.x Nov 19, 2026
15 of 24 checks passed
@jdalton
John-David Dalton (jdalton) deleted the test/native-terminal-snapshots-v1x branch November 19, 2026 17:41
Oskar Haarklou Veileborg (BarrensZeppelin) added a commit that referenced this pull request Nov 24, 2026
#1737 renamed snapshots:update:dep to snapshots:refresh:dep but left the old name in the swap-version help and the bump skills.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants