Skip to content

fix(test): suppress @actions/core output noise in tests#12

Open
mafredri wants to merge 1 commit intomainfrom
fix/suppress-test-noise
Open

fix(test): suppress @actions/core output noise in tests#12
mafredri wants to merge 1 commit intomainfrom
fix/suppress-test-noise

Conversation

@mafredri
Copy link
Copy Markdown
Member

Tests produced a wall of ::error::, Looking up Coder user by GitHub user ID:, Creating new agent chat... etc. because @actions/core functions write GitHub Actions command format to stdout/stderr.

Adds a bun test preload (src/setup-test.ts) that mocks @actions/core with no-ops. Test output is now clean, showing only pass/fail results. No test logic changed since none of the existing tests assert on core.* calls.

Before: noisy mix of pass/fail lines and GHA command output.
After: clean 44-pass summary in 33ms.

🤖 This PR was created with the help of Coder Agents, and will be reviewed by a human. 🏂🏻

@mafredri mafredri requested a review from david-fraley March 20, 2026 11:56
Mock @actions/core via a bun test preload script so the real
module's stdout/stderr writes (::error::, info lines, etc.)
don't clutter test output.
@mafredri mafredri force-pushed the fix/suppress-test-noise branch from 2a7a020 to 749e90b Compare March 20, 2026 13:22
@mafredri mafredri marked this pull request as ready for review March 20, 2026 14:20
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.

1 participant