Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Sage Ross
    @ragesoss
    Hi! I have a test suite where we've configured coverage instrumentation with JSCover. Much of it works, but I'm finding some tests where the final coverage data doesn't seem to get persisted to local storage at the end of the test, instead reverting to an earlier state from partway through the test. Any pointers on how to get to the bottom of it? From browsing the open issues, I'm taking a wild guess that it might be related to places in my code that use bind(this)?
    Sage Ross
    @ragesoss
    I figured it out! The problem was a place in my code that did window.onbeforeunload = null; that preventing it from saving the data from just the tests that exercised that bit of code.