test(secret-scan): Add test coverage #534
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.
User description
Description
This PR fixes a test coverage-related issue in the
secret-scan package
by migrating from Mocha to Jest for improved test execution and flexibility. The changes include:validate-secret-scan.yaml
).codecov.yml
.Fixes #521
Developer's checklist
If changes are made in the code:
PR Type
Tests, Enhancement
Description
secret-scan
package tests from Mocha to Jest for improved test execution and flexibility.secret-scan
flag to the Codecov configuration for better coverage tracking.Changes walkthrough 📝
secret.test.ts
Migrate tests from Mocha to Jest framework
packages/secret-scan/src/test/secret.test.ts
assert.equal
withexpect
for assertions.jest.config.ts
Add Jest configuration for secret-scan package
packages/secret-scan/jest.config.ts
ts-jest
.package.json
Update package scripts for Jest and formatting
packages/secret-scan/package.json
tsconfig.json
Update TypeScript configuration for Jest compatibility
packages/secret-scan/tsconfig.json
tsconfig.spec.json
Add TypeScript configuration for Jest tests
packages/secret-scan/tsconfig.spec.json
validate-secret-scan.yaml
Update GitHub Actions workflow for Jest coverage
.github/workflows/validate-secret-scan.yaml
codecov.yml
Add secret-scan flag to codecov configuration
codecov.yml
secret-scan
to the code coverage configuration.secret-scan
package.project
andpatch
types undersecret-scan
.pnpm-lock.yaml
Update dependencies for Jest migration
pnpm-lock.yaml
@swc/helpers
.