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

mweststrate / immer / 2 / 1
97%
master: 99%

Build:
Build:
LAST BUILD BRANCH: github-actions-ci
DEFAULT BRANCH: master
Ran 13 Dec 2018 03:19PM UTC
Files 6
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

13 Dec 2018 03:15PM UTC coverage: 95.606% (-1.3%) from 96.926%
NODE_ENV=TEST

push

travis-ci-com

aleclarson
feat: add hooks to the `Immer` class

Hooks are passed as options to the Immer class.

onAssign(state, prop, value)
  Called for every property assigned to by a producer

onDelete(state, prop)
  Called for every property deleted by a producer

onCopy(state)
  Called whenever a copy becomes finalized

These hooks are passed an `ImmerState` object. (defined at the end of "src/index.d.ts")

The `state` is guaranteed to be both modified and finalized if ever passed to a hook.

265 of 283 branches covered (93.64%)

Branch coverage included in aggregate %.

279 of 286 relevant lines covered (97.55%)

495.5 hits per line

Source Files on job 2.1 (NODE_ENV=TEST)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 410
  • Travis Job 2.1
  • 2a78f0a3 on github
  • Prev Job for NODE_ENV=TEST on factory (#1.1)
  • Next Job for NODE_ENV=TEST on factory (#3.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