Skip to content

feat: add CI workflow and unit tests for utility functions#1

Merged
ndenny merged 1 commit intomainfrom
add-unit-tests-and-cicd
Mar 13, 2026
Merged

feat: add CI workflow and unit tests for utility functions#1
ndenny merged 1 commit intomainfrom
add-unit-tests-and-cicd

Conversation

@ndenny
Copy link
Copy Markdown
Member

@ndenny ndenny commented Mar 13, 2026

This pull request introduces a new continuous integration (CI) workflow, refactors utility functions into a separate module, and adds comprehensive unit tests for these utilities. Additionally, it updates project configuration to support testing and workspace organization.

CI and Automation:

  • Adds a new GitHub Actions workflow in .github/workflows/ci.yml to automate testing and building on pull requests and pushes to main. This ensures code quality and build integrity on every change.

Codebase Refactoring and Testing:

  • Refactors parseBoolean and summarizeDocument utility functions out of src/index.js into a new src/utils.js module, cleaning up the main file and improving code organization. [1] [2] [3] [4]
  • Adds a new test script to package.json and implements thorough unit tests for the utilities in test/utils.test.js, improving reliability and maintainability. [1] [2]

Project Structure and Workspace:

  • Updates the VS Code workspace file to include an additional folder, supporting multi-repo or multi-project workflows.

Exports and API Improvements:

  • Ensures all relevant functions are exported from src/openapi.js, improving modularity and testability.

@ndenny ndenny merged commit f35c04d into main Mar 13, 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.

1 participant