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

rm-hull / use-local-storage / 18984742019
92%

Build:
DEFAULT BRANCH: main
Ran 31 Oct 2025 08:43PM UTC
Jobs 1
Files 2
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

31 Oct 2025 08:43PM UTC coverage: 91.954%. Remained the same
18984742019

push

github

web-flow
refactor: Add T constraint to useLocalStorage (#34)

* refactor: Add T constraint to useLocalStorage

The generic type `T` used in `useLocalStorage` is now constrained
to ensure it is a `Record<string, unknown>` or `undefined`. This
improves type safety and clarity.

* test: Adapt tests to use TestBlob structure

The tests for `useLocalStorage` were updated to correctly serialize and
deserialize values using the expected `TestBlob` structure (e.g.,
`{ testValue: "value" }`) when mocking initial data in
`localStorage`.

This ensures the tests accurately reflect how the hook handles data
wrapping/unwrapping in its generic usage context.

21 of 26 branches covered (80.77%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

59 of 61 relevant lines covered (96.72%)

46.31 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18984742019.1 31 Oct 2025 08:43PM UTC 2
91.95
GitHub Action Run
Source Files on build 18984742019
  • Tree
  • List 2
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #18984742019
  • 0e1c576d on github
  • Prev Build on main (#18981958961)
  • Next Build on main (#18985012008)
  • 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