• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ThePalaceProject / web-patron / 28798829674
89%

Build:
DEFAULT BRANCH: main
Ran 06 Jul 2026 02:26PM UTC
Jobs 1
Files 16
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Jul 2026 02:24PM UTC coverage: 88.501%. Remained the same
28798829674

push

github

web-flow
Clean up test output for expected errors/warnings (PP-4714) (#155)

## Description

- Adds a shared `expectAndSuppressConsole` test helper that spies on
`console.warn`/`console.error`, suppresses messages matching expected
patterns, and passes everything else through — so unexpected output
(e.g., mismatched error messages or test code errors) remains visible.
- Refactors inline per-test spy setup/teardown into describe-level
`beforeEach`/`afterEach` blocks across several test files.
- Patterns at each call site include the full expected message content
(including error object strings), serving as inline documentation of
what output is expected.

## Motivation and Context

Tests exercising error-handling paths were emitting expected
`console.warn`/`console.error` output with multi-line stack traces on
every run, making it harder to spot real failures. Blanket suppression
was not acceptable because some console output (like React `act()`
warnings) reflects genuine test quality issues.

[Jira PP-4714]

## How Has This Been Tested?

Changes are limited to test infrastructure — no production code was
modified. The existing test suite validates that affected code paths
still produce expected output (spy-call assertions remain where tests
verify the warning was actually produced).

## Checklist:

- N/A - I have updated the documentation accordingly.
- [x] All new and existing tests passed.

225 of 260 branches covered (86.54%)

Branch coverage included in aggregate %.

383 of 427 relevant lines covered (89.7%)

29.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28798829674.1 06 Jul 2026 02:26PM UTC 16
88.5
GitHub Action Run
Source Files on build 28798829674
  • Tree
  • List 16
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 53bc1153 on github
  • Prev Build on main (#28793033781)
  • Next Build on main (#28799440663)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc