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

stores-com / usps
100%

Build:
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 main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • main
  • mock-fetch-tests

25 May 2026 06:16PM UTC coverage: 100.0%. Remained the same
26414053203

push

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>

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 main
  • 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
26414053203 main 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 ... push 25 May 2026 06:16PM UTC freshlogic github
100.0
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
22679722600 main Add cache buster to Coveralls badge push 04 Mar 2026 04:53PM UTC freshlogic github
100.0
22678690276 main Fix Coveralls badge URL push 04 Mar 2026 04:27PM UTC freshlogic github
100.0
22651852976 main Add npm version and license badges to README Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> push 04 Mar 2026 02:08AM UTC freshlogic github
100.0
#14 main Add test:only script and remove default --test-concurrency=true Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> push 14 Feb 2026 12:24AM UTC Shawn Miller
100.0
#13 main Remove unnecessary cache cleanup from tests Each test file runs in its own child process, so in-memory cache is discarded when the process exits. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> push 12 Feb 2026 07:00AM UTC freshlogic
97.87
#12 main Bump version to 0.2.2 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> push 12 Feb 2026 04:01AM UTC freshlogic
100.0
#11 main Change license to MIT Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> push 12 Feb 2026 03:58AM UTC freshlogic
100.0
#10 main Update package.json push 12 Feb 2026 03:47AM UTC freshlogic
100.0
See All Builds (19)
  • 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