Skip to content

test: add tests for core pipeline and clustering algorithms#32

Merged
HahaBill merged 1 commit into
masterfrom
feat/add-jest-tests
Jul 20, 2026
Merged

test: add tests for core pipeline and clustering algorithms#32
HahaBill merged 1 commit into
masterfrom
feat/add-jest-tests

Conversation

@Harsh16gupta

@Harsh16gupta Harsh16gupta commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

This PR adds Jest unit testing infrastructure to the project and introduces unit tests for the core pipeline, clustering algorithms, and utility functions.
All test suites are placed inside a mirrored test/ directory.

fixes #4

Changes:
Infrastructure: Added jest, ts-jest, and ts-node. Configured jest.config.ts, enabled Jest globals in ESLint config, and added the test runner step to the GitHub Actions CI workflow.

Test Coverage:
Vector calculations (vectorAggregator, metrics)
Clustering algorithms (kmeans, kmedoids)
Name and keyword extraction (tfidf, tagExtraction, clusterNaming)
Utilities and configs (titleFilter, pipelineConfig)

Verification:
Verified that all 137 unit tests pass successfully.
Confirmed that npm run ci completes locally without linting, formatting, or build errors.
image

@Harsh16gupta Harsh16gupta self-assigned this Jul 16, 2026
@Harsh16gupta
Harsh16gupta requested a review from HahaBill July 19, 2026 16:57

@HahaBill HahaBill left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Very large PR to review but given that it's only unit tests then lgtm

@HahaBill
HahaBill merged commit 7b1436d into master Jul 20, 2026
2 checks passed
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.

[CI/CD] Setup Automated Tests and GitHub Actions

2 participants