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

dangernoodle-io / TaipanMiner / 25619089157 / 1
90%
main: 90%

Build:
DEFAULT BRANCH: main
Ran 10 May 2026 03:51AM UTC
Files 53
Run time 1s
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

10 May 2026 03:47AM UTC coverage: 77.225% (+1.2%) from 76.02%
25619089157.1

push

github

web-flow
refactor(flasher): extract state machine + serial adapter; add tests (#371)

* refactor(flasher): extract state machine, serial adapter, error categorization

- withTimeout.ts: pure timeout wrapper lifted from App.svelte
- errorMessages.ts: pure error-categorization functions with exact regex/message strings
- serial.ts: web serial + esptool-js boundary (requestPort, connectDevice, disconnectDevice, writeFirmware, hardReset)
- flashState.svelte.ts: createFlashState() factory using svelte 5 runes; all state transitions and async actions lifted from App.svelte
- App.svelte: reduced to ~140 LOC thin shell; reads state.*, delegates clicks to state actions

no behavior changes: same state transitions, same error messages, same button enablement

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* test(webui): cover flasher modules and include in coveralls upload

- vitest.config.ts: mirrors ui-kit config; VITE_FLASHER_FIXTURES=1 env
- test-setup.ts: mirrors ui-kit setup; adds navigator.serial stub
- withTimeout.test.ts: 6 specs (resolve, timeout, label, ms-to-s, rejection, no-late-fire)
- errorMessages.test.ts: 13 specs (all regex branches for connect/flash error categorization)
- release.test.ts: 6 specs (manifest 200/404/500, asset streaming, sha256 mismatch, progress)
- serial.test.ts: 11 specs (requestPort, connectDevice, disconnectDevice, writeFirmware, hardReset)
- flashState.test.ts: 25 specs (initial state, select, manifest, connect paths, flash paths, flashAnother, handleDeviceDisconnect, boardOptions)
- App.test.ts: 10 specs (idle, connecting, connected, chip info, progress, done, errors, disconnect banner)
- main.test.ts: 1 spec (mount called with #app target)

CI: adds flasher test step to webui-check; adds flasher lcov to coveralls upload

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

1144 of 1602 branches covered (71.41%)

Branch coverage included in aggregate %.

1901 of 2341 relevant lines covered (81.2%)

28.44 hits per line

Source Files on job webui - 25619089157.1
  • Tree
  • List 53
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25619089157
  • d3742d80 on github
  • Prev Job for on main (#25618652569.3)
  • Next Job for on main (#25619459678.2)
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