[WIP] Fix failing tests in the project#13203
Merged
pelikhan merged 2 commits intocopilot/add-js-frontmatter-hash-testfrom Feb 2, 2026
Merged
[WIP] Fix failing tests in the project#13203pelikhan merged 2 commits intocopilot/add-js-frontmatter-hash-testfrom
pelikhan merged 2 commits intocopilot/add-js-frontmatter-hash-testfrom
Conversation
Test files (*.test.cjs, test-*.cjs) are not deployed to GitHub Actions runners and may use @actions/* packages for testing purposes. Updated TestCJSFilesNoActionsRequires to exclude these files from validation. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
2e65267
into
copilot/add-js-frontmatter-hash-test
2 checks passed
Copilot stopped work on behalf of
pelikhan due to an error
February 2, 2026 05:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fix Test Validation for GitHub API Test Files
The test
TestCJSFilesNoActionsRequireswas failing because two test files userequire("@actions/github"):frontmatter_hash_github_api.test.cjs- Vitest test filetest-live-github-api.cjs- Standalone test scriptThese files are for testing GitHub API integration and are not deployed to GitHub Actions runners.
Changes
@actions/githubare caught by validation.test.cjsandtest-*.cjsfiles)make fmt- ✅ DoneSolution
Updated
TestCJSFilesNoActionsRequiresto exclude:.test.cjs(vitest test files)test-(standalone test scripts)These test files are not part of the runtime deployment and can safely use
@actions/*packages for testing purposes.Test Results
Before fix:
After fix:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.