Skip to content

test(data-table): cover filters, parsing, and the hook - #1169

Merged
sadmann7 merged 4 commits into
mainfrom
sadman/data-table-coverage
Oct 4, 2026
Merged

sadmann7 merged 4 commits into
mainfrom
sadman/data-table-coverage

Conversation

@sadmann7

@sadmann7 sadmann7 commented Oct 4, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI balanced review requested due to automatic review settings October 4, 2026 19:50
@vercel

vercel Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
tablecn Ready Ready Preview Oct 4, 2026 8:14pm UTC

Request Review

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.

Copilot review overview

🟡 Changes recommended

Two live-clock date tests can fail nondeterministically around midnight or daylight-saving transitions.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
What changed in this PR

Expands automated coverage for data-table parsing, filtering, utilities, table behavior, and URL-synchronized hooks.

Changes:

  • Adds comprehensive client and SQL filter tests.
  • Covers parsing, serialization, sorting, faceting, and layout utilities.
  • Extends useDataTable URL-state tests.
File Description
src/​lib/​test/​data-table.test.ts Extends parser and query tests.
src/​lib/​test/​data-table-utils.test.ts Adds utility coverage.
src/​lib/​test/​data-table-table.test.tsx Tests filtering, faceting, state, and layout.
src/​lib/​test/​data-table-filters.test.ts Tests client-side filter matching.
src/​hooks/​test/​use-data-table.test.tsx Extends hook and URL synchronization tests.
src/​app/​lib/​test/​filter-columns.test.ts Tests generated SQL filter conditions.

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

Comment thread src/app/lib/test/filter-columns.test.ts Outdated
Comment thread src/lib/test/data-table-filters.test.ts Outdated
@sadmann7
sadmann7 merged commit 8871546 into main Oct 4, 2026
8 checks passed
@sadmann7
sadmann7 deleted the sadman/data-table-coverage branch October 4, 2026 20:16

This branch was successfully deployed

1 active deployment
Preview — 52ff6664 Deployed Oct 4, 2026 by vercel[bot]
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