Skip to content

test : added vitest unit tests for clinical-attention-navigator.ts#1963

Open
tmdeveloper007 wants to merge 1 commit into
gopaljilab:mainfrom
tmdeveloper007:#1958
Open

test : added vitest unit tests for clinical-attention-navigator.ts#1963
tmdeveloper007 wants to merge 1 commit into
gopaljilab:mainfrom
tmdeveloper007:#1958

Conversation

@tmdeveloper007

Copy link
Copy Markdown
Contributor

Closes #1958.

Summary of What Has Been Done:
Added 22 vitest unit tests for the generateAttentionNavigator function in server/services/clinical-attention-navigator.ts covering risk category prioritization, biomarker thresholds (HbA1c, blood glucose, BMI), comorbidity flags (hypertension, heart disease), smoking history normalization, factor deduplication, and priority sorting.

Changes Made:

  • server/services/clinical-attention-navigator.test.ts (new file, 163 lines)

Impact it Made:
All 22 tests pass. Lint and typecheck clean. Improves test coverage for server/services/.

Note: Please assign this PR to the tmdeveloper007 account.

- Tests risk category priority (HIGH/MODERATE/LOW)
- Tests HbA1c thresholds (>=9 high, 7-9 moderate, <7 monitor)
- Tests blood glucose thresholds (>=200 high, 140-200 moderate, <140 monitor)
- Tests BMI thresholds (>=30 moderate, others monitor)
- Tests comorbidity flags (hypertension moderate, heart disease high)
- Tests smoking history normalization (current=moderate, former=monitor)
- Tests factor deduplication and priority sorting
@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

@tmdeveloper007 is attempting to deploy a commit to the gopaljilab's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the type:testing Adding, updating, or fixing unit/integration tests. label Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:testing Adding, updating, or fixing unit/integration tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test : add vitest unit tests for clinical-attention-navigator.ts

1 participant