-
Notifications
You must be signed in to change notification settings - Fork 13
Expand Unit Test Coverage #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Semantic Version Check Passed βVersion in manifest file This comment will be automatically updated as changes are pushed to this PR branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request expands the unit test coverage, updates fixture imports to use scoped packages (e.g. @actions/core, @actions/github, @octokit/rest), and adds new tests for artifact operations (listing, getting, downloading, and deleting) as well as command execution.
- Updates to module import paths using scoped packages
- Addition of new tests to validate public and internal artifact functions
- Inclusion of new tests for URL query parameter scrubbing and file system existence checks
Reviewed Changes
Copilot reviewed 60 out of 64 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
tests/stubs/artifact/internal/find/list-artifacts.test.ts | Updated import paths and added tests for listing artifacts with filtering logic |
tests/stubs/artifact/internal/find/get-artifact.test.ts | Updated import paths and added tests for getting artifacts, including error handling and selection of the latest artifact |
tests/stubs/artifact/internal/download/download-artifact.test.ts | Added tests for URL scrubbing, fs.exists behavior, and error handling in artifact downloads |
tests/stubs/artifact/internal/delete/delete-artifact.test.ts | Updated import paths and added tests for deleting artifacts |
tests/stubs/artifact/internal/client.test.ts | Removed obsolete comments and updated core import path |
tests/command.test.ts | Added tests to validate command execution based on action.yaml configuration |
fixtures/typescript/success-yaml/* | Added action configuration and source files for a TypeScript action example |
fixtures/fs.ts, fixtures/@octokit/rest.ts, fixtures/@actions/* | Updated and added new fixture implementations to support the tests |
README.md | Updated dependency versions and documentation for the action packages |
Files not reviewed (4)
- fixtures/typescript/success-yaml/.env.fixture: Language not supported
- fixtures/typescript/success-yaml/package-lock.json: Language not supported
- fixtures/typescript/success-yaml/package.json: Language not supported
- fixtures/typescript/success-yaml/tsconfig.json: Language not supported
Comments suppressed due to low confidence (1)
tests/command.test.ts:37
- There is a typo in the test suite description. Consider renaming 'Commmand' to 'Command'.
describe('Commmand', () => {
Tip: Leave feedback on Copilot's review comments with the π and π buttons to help improve review quality. Learn more
π¦ MegaLinter status: β ERROR
See detailed report in MegaLinter reports |
This pull request includes several updates and improvements across multiple files, focusing on adding new functionalities, updating dependencies, and enhancing test coverage. The most important changes include adding new mock implementations for testing.
No functionality changes have been introduced.