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

mweststrate / immer / 521
96%
master: 99%

Build:
Build:
LAST BUILD BRANCH: github-actions-ci
DEFAULT BRANCH: master
Ran 30 Nov 2018 10:50PM UTC
Jobs 4
Files 6
Run time 2min
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

pending completion
521

Pull #259

travis-ci

web-flow
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.
Pull Request #259: feat: add hooks to the `Immer` class

265 of 283 branches covered (93.64%)

Branch coverage included in aggregate %.

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

279 of 286 relevant lines covered (97.55%)

1988.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 521.1 (NODE_ENV=TEST) 30 Nov 2018 10:50PM UTC 0
95.61
Travis Job 521.1
2 521.2 (NODE_ENV=TEST) 30 Nov 2018 10:51PM UTC 0
95.61
Travis Job 521.2
3 521.3 (NODE_ENV=TEST) 30 Nov 2018 10:52PM UTC 0
95.61
Travis Job 521.3
4 521.4 (NODE_ENV=TEST) 30 Nov 2018 10:51PM UTC 0
95.61
Travis Job 521.4
Source Files on build 521
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #521
  • Pull Request #259
  • PR Base - factory (#515)
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