Skip to content

Added jest tests#17

Merged
umanamente merged 8 commits into
masterfrom
feat-jest-tests
Oct 20, 2025
Merged

Added jest tests#17
umanamente merged 8 commits into
masterfrom
feat-jest-tests

Conversation

@umanamente

Copy link
Copy Markdown
Owner

Added jest unit tests

@umanamente umanamente requested a review from Copilot October 20, 2025 21:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds Jest testing infrastructure to the project, including unit tests for the splitConstants function from CredentialsUtils and CI/CD workflow integration for automated test coverage reporting.

Key Changes

  • Introduces Jest unit tests for splitConstants function covering various input formats (key=value pairs, JSON, mixed inputs, edge cases)
  • Adds Jest dependencies and test scripts to package.json
  • Integrates Jest coverage reporting into GitHub Actions workflows

Reviewed Changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated 2 comments.

File Description
test/CredentialsUtils.test.ts Adds comprehensive unit tests for splitConstants function with 6 test cases covering different input scenarios
package.json Adds Jest-related dependencies and test scripts (test, test:watch, test:coverage)
.github/workflows/release.yml Updates CI workflow to run tests on all branches/PRs and includes Jest coverage reporting step

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread test/CredentialsUtils.test.ts Outdated
Comment thread test/CredentialsUtils.test.ts Outdated
@github-actions

github-actions Bot commented Oct 20, 2025

Copy link
Copy Markdown

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 100% 15/15
🟢 Branches 100% 2/2
🟢 Functions 100% 1/1
🟢 Lines 100% 15/15

Test suite run success

6 tests passing in 1 suite.

Report generated by 🧪jest coverage report action from 3ad990a

@github-actions

Copy link
Copy Markdown

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 100% 15/15
🟢 Branches 100% 2/2
🟢 Functions 100% 1/1
🟢 Lines 100% 15/15

Test suite run success

6 tests passing in 1 suite.

Report generated by 🧪jest coverage report action from 3ba5c51

@umanamente umanamente merged commit d3e7a47 into master Oct 20, 2025
5 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.

2 participants