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

stores-com / usps
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/stores.com/http-error-1.1.0
DEFAULT BRANCH: main
Repo Added 11 Feb 2026 08:17PM UTC
Files 1
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

LAST BUILD ON BRANCH mock-fetch-tests
branch: mock-fetch-tests
CHANGE BRANCH
x
Reset
  • mock-fetch-tests
  • dependabot/npm_and_yarn/stores.com/http-error-1.1.0
  • main

25 May 2026 06:15PM UTC coverage: 100.0%. Remained the same
26414019541

Pull #2

github

freshlogic
Mock global.fetch in tests instead of calling the live USPS API

The tracking tests hit the live USPS sandbox (apis-tem.usps.com), which
intermittently returns 503 and had kept CI red for weeks. Replace fetch
with a node:test mock that routes the oauth and tracking endpoints to
canned responses — no live calls, no new dependencies.

Runs serially (global fetch mocking and concurrency don't mix) and
clears the memory-cache token singleton between tests. The invalid-URL
test still uses real fetch to assert its parse error.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Pull Request #2: Mock global.fetch in tests instead of calling the live USPS API

13 of 13 branches covered (100.0%)

Branch coverage included in aggregate %.

82 of 82 relevant lines covered (100.0%)

5.88 hits per line

Relevant lines Covered
Build:
Build:
82 RELEVANT LINES 82 COVERED LINES
5.88 HITS PER LINE
Source Files on mock-fetch-tests
  • Tree
  • List 1
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
26414019541 mock-fetch-tests Mock global.fetch in tests instead of calling the live USPS API The tracking tests hit the live USPS sandbox (apis-tem.usps.com), which intermittently returns 503 and had kept CI red for weeks. Replace fetch with a node:test mock that routes the ... Pull #2 25 May 2026 06:15PM UTC freshlogic github
100.0
See All Builds (21)
  • Repo on GitHub
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