Workspace/tests and workflows #5
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a continuous integration (CI) workflow, adds unit tests for the configuration and feature modules, and enhances test coverage for key functionalities. Below are the most important changes grouped by theme:
CI Workflow Setup:
.github/workflows/main.yml) to run tests and build the project on pushes and pull requests targeting themainormasterbranches. The workflow supports Node.js versions 20.x, 22.x, and 24.x, and includes steps for dependency installation, testing, building, and uploading build artifacts.Unit Tests for Configuration:
test/config.test.tsto validate the creation of configuration objects with default values, provided CLI arguments, and partially undefined CLI arguments. Mocked the CLI module (cliArgsParse) to simulate different input scenarios.Unit Tests for Feature Module:
test/feature.test.tsfor theFeatureclass, covering methods likezipDirectory,packagesProcess,copyFiles,installDeps,remove, andrunCommands. Mocked dependencies such asfs,JSZip, andchild_processto simulate file operations, zipping, and command execution.