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

facebook / react / 13471
86%

Build:
DEFAULT BRANCH: master
Ran 15 Oct 2016 05:20PM UTC
Jobs 1
Files 226
Run time 10s
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
13471

push

travis-ci

web-flow
Support passthrough updates for error boundaries (#7949)

* Initial pass at the easy case of updates (updates that start at the root).

* Don't expect an extra componentWillUnmount call

It was fixed in #6613.

* Remove duplicate expectations from the test

* Fix style issues

* Make naming consistent throughout the tests

* receiveComponent() does not accept safely argument

* Assert that lifecycle and refs fire for error message

* Add more tests for mounting

* Do not call componentWillMount twice on error boundary

* Document more of existing behavior in tests

* Do not call componentWillUnmount() when aborting mounting

Previously, we would call componentWillUnmount() safely on the tree whenever we abort mounting it. However this is likely risky because the tree was never mounted in the first place.

People shouldn't hold resources in componentWillMount() so it's safe to say that we can skip componentWillUnmount() if componentDidMount() was never called.

Here, we introduce a new flag. If we abort during mounting, we will not call componentWillUnmount(). However if we abort during an update, it is safe to call componentWillUnmount() because the previous tree has been mounted by now.

* Consistently display error messages in tests

* Add more logging to tests and remove redundant one

* Refactor tests

* Split complicated tests into smaller ones

* Assert clean unmounting

* Add assertions about update hooks

* Add more tests to document existing behavior and remove irrelevant details

* Verify we can recover from error state

* Fix lint

* Error in boundary’s componentWillMount should propagate up

This test is currently failing.

* Move calling componentWillMount() into mountComponent()

This removes the unnecessary non-recursive skipLifecycle check.
It fixes the previously failing test that verifies that if a boundary throws in its own componentWillMount(), the error will propagate.

* Re... (continued)

45 of 45 new or added lines in 8 files covered. (100.0%)

7548 of 8588 relevant lines covered (87.89%)

3326.17 hits per line

Jobs
ID Job ID Ran Files Coverage
2 13471.2 (TEST_TYPE=test) 15 Oct 2016 05:20PM UTC 0
87.89
Travis Job 13471.2
Source Files on build 13471
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #13471
  • f33f03e3 on github
  • Prev Build on master (#13456)
  • Next Build on master (#13478)
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