Skip to content

LIG-10251 Test grouped sample-tag counts hook#1699

Draft
ikondrat wants to merge 1 commit into
kondrat-lig-10240-frontend-grouped-multi-series-class-distribution-chartfrom
kondrat-lig-10251-coverage-grouped-sample-tag-query-hook
Draft

LIG-10251 Test grouped sample-tag counts hook#1699
ikondrat wants to merge 1 commit into
kondrat-lig-10240-frontend-grouped-multi-series-class-distribution-chartfrom
kondrat-lig-10251-coverage-grouped-sample-tag-query-hook

Conversation

@ikondrat

Copy link
Copy Markdown
Contributor

Summary

  • test complete grouped-count request construction
  • verify ordered sample-tag IDs and all reactive inputs are retained in the query key
  • verify the shared annotation-count invalidation prefix
  • cover empty-selection and explicit disabled states
  • verify SDK execution forwards the request, cancellation signal, and throwOnError

Stack

This coverage is separated to keep each review below the requested 150-line threshold.

Testing instructions

cd lightly_studio_view
make static-checks
npm run test:unit -- --run \
  src/lib/hooks/useImageAnnotationCountsBySampleTags/useImageAnnotationCountsBySampleTags.test.ts

Expected: 5 tests pass.

Validation

  • make static-checks: passed
  • 5 focused unit tests: passed

@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 42b099f2-3a8e-45f6-abe8-13fbb048d340

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch kondrat-lig-10251-coverage-grouped-sample-tag-query-hook

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant