Skip to content

chore: require descriptive snapshot hints - #10892

Merged
Light2Dark merged 1 commit into
mainfrom
codex/enable-oxlint-snapshot-hints
Sep 18, 2026
Merged

Light2Dark merged 1 commit into
mainfrom
codex/enable-oxlint-snapshot-hints

Conversation

@Light2Dark

Copy link
Copy Markdown
Member

This pull request was authored by a coding agent.

📝 Summary

Vitest snapshot files used numeric suffixes when a test contained several snapshots, which made failures difficult to map back to a lifecycle step. This enables vitest/prefer-snapshot-hint and gives the existing database-code and cell-state snapshots stable, descriptive names.

The stored snapshot values are unchanged; only their keys are renamed.

📋 Pre-Review Checklist

  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
  • Video or media evidence is provided for any visual changes (optional).

✅ Merge Checklist

  • I have read the contributor guidelines.
  • Documentation has been updated where applicable, including docstrings for API changes.
  • Tests have been added for the changes made.

Written by GPT-6 on Codex desktop

@Light2Dark Light2Dark added the internal A refactor or improvement that is not user facing label Sep 18, 2026
@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
marimo-docs Ready Ready Preview Sep 18, 2026 2:58am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 5 files

Re-trigger cubic

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report for ./frontend

Status Category Percentage Covered / Total
🔵 Lines 58.68% 22503 / 38343
🔵 Statements 58.62% 22899 / 39062
🔵 Functions 51.83% 5086 / 9812
🔵 Branches 52.41% 11925 / 22749
File CoverageNo changed files found.
Generated in workflow #21578 for commit 74d28e1 by the Vitest Coverage Report Action

@Light2Dark
Light2Dark marked this pull request as ready for review September 18, 2026 03:17
@Light2Dark
Light2Dark requested review from kirangadhave and a lite review from Copilot September 18, 2026 03:17
@Light2Dark
Light2Dark enabled auto-merge (squash) September 18, 2026 03:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Remaining unhinted snapshots will cause the frontend lint check to fail.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This pull request adds descriptive Vitest snapshot hints and updates snapshot keys without changing stored values.

Changes:

  • Adds lifecycle-specific hints to cell snapshots.
  • Adds descriptive hints to database snapshots.
  • Removes the Oxlint suppression for snapshot hints.
  • Renames corresponding snapshot keys.

Critical issue (2 votes): 91 unhinted snapshot calls remain elsewhere, causing the frontend lint check to fail.

File summaries
File Description
frontend/src/core/cells/__tests__/cells.test.ts Adds cell-state snapshot hints.
frontend/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap Renames cell snapshot keys.
frontend/src/components/editor/connections/database/__tests__/as-code.test.ts Adds database snapshot hints.
frontend/src/components/editor/connections/database/__tests__/__snapshots__/as-code.test.ts.snap Renames database snapshot keys.
frontend/.oxlintrc.json Removes the snapshot-hint suppression.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread frontend/.oxlintrc.json
@@ -72,8 +72,6 @@
"error",
{ "additionalTestBlockFunctions": ["beforeEach"] }
],
@Light2Dark
Light2Dark merged commit 3bea439 into main Sep 18, 2026
32 of 33 checks passed
@Light2Dark
Light2Dark deleted the codex/enable-oxlint-snapshot-hints branch September 18, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants