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

preactjs / preact / 5966 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 28 Oct 2019 07:49PM UTC
Files 19
Run time 2s
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

28 Oct 2019 07:46PM UTC coverage: 99.775% (-0.1%) from 99.888%
5966.1

push

travis-ci

web-flow
Separate debug tests into multiple files and fix some bugs in debug (#2047)

Previously the debug tests attempted to reset the options object before each test (I think at my suggestion originally lol) to reset the debug state before each test. However, by deleting the options properties, it deleted the hooks options and compat options. It also didn't delete every option so some options would continue to work. This behavior lead to tests that weren't resilient to changes and didn't capture bugs.

To improve our debug tests, I separated the tests out into different files. Each test file only initializes the debug options once. This behavior better mimics what our users do making our tests more closely match our user's behaviors.

Further, some debug behavior changes based on which modules you import (e.g. if you use compat we don't warn on string refs). So separating out the debug tests into different files (one test file imports compat, another doesn't) allows us to simulate these differing behaviors more reliable.

If nothing else, the debug.test.js file was pretty big so making it a little smaller is kinda nice :)

This PR also fixes a bug where if different instances of the same component wouldn't print warnings since they share the same constructor (more details in the comments of the PR).

846 of 857 branches covered (98.72%)

888 of 890 relevant lines covered (99.78%)

785.62 hits per line

Source Files on job 5966.1
  • Tree
  • List 0
  • Changed 17
  • Source Changed 1
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1347
  • Travis Job 5966.1
  • d0136479 on github
  • Prev Job for on master (#5960.1)
  • Next Job for on master (#5971.1)
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