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

preactjs / preact / 5966
100%

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

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

Jobs
ID Job ID Ran Files Coverage
1 5966.1 28 Oct 2019 07:49PM UTC 0
99.78
Travis Job 5966.1
Source Files on build 5966
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5966
  • d0136479 on github
  • Prev Build on master (#5960)
  • Next Build on master (#5971)
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

© 2025 Coveralls, Inc