Skip to content

fix(api): run test files from npm test - #11565

Open
cipres-debug wants to merge 1 commit into
SecureBananaLabs:mainfrom
cipres-debug:bounty-11564-test-script
Open

fix(api): run test files from npm test#11565
cipres-debug wants to merge 1 commit into
SecureBananaLabs:mainfrom
cipres-debug:bounty-11564-test-script

Conversation

@cipres-debug

Copy link
Copy Markdown

Summary

Fixes #11564.

The API workspace script used node --test src/tests, which Node interpreted as a file path and rejected with MODULE_NOT_FOUND in a fresh checkout. The repository stores tests as src/tests/*.test.js.

This change uses an explicit test-file glob so npm test discovers the current health test and future API test files.

Validation

  • npm test from apps/api
  • 1 test passed, 0 failed

This PR addresses the creator-only issue opened under the SecureBanana bounty workflow (refs #11398).

github-actions Bot added a commit that referenced this pull request Aug 3, 2026
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.

npm test fails in a fresh checkout because src/tests is not a test file

1 participant