question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Toggling coverage overlay requires refreshing page

See original GitHub issue

Environment

  1. node -v: v8.6.0

  2. npm -v: 5.3.0

  3. npm ls react-scripts (if you haven’t ejected): (empty)

  4. Operating system: macOS 10.13.1

Steps to Reproduce

Coverage overlay is not shown. Do Toggle coverage overlay. Still not shown. Switch to another file. Switch back. Overlay is shown.

Expected Behavior

Coverage overlay is not shown. Do Toggle coverage overlay. Overlay is shown.

Actual Behavior

See above.

In overlay.ts we’re just doing () => (showCoverage = !showCoverage), but I don’t think that makes anything happen, like the page refreshing (or whatever you’re supposed to do with the extension API.) How would one add that?

Also, if someone were to add an indicator that the coverage overlay were on or off, where would be the best place to do that? I was thinking maybe the lens at the top could show lines: ..., branches: 95%, overlay: true but I’d like some better opinions. Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
smithcommented, Dec 1, 2017

I don’t think it makes sense to add a codelens (like the debug buttons)

I really think that somewhere it should tell me whether the coverage overlay is on or off. Doesn’t need to be in a lens at all, but there’s no way of telling right now and it’s frustrating.

I think it does make sense to fix the bug where it doesn’t show the coverage on your first run. Want to look at it?

Yes, but I’m not at all familiar with the extension API. Where would I start? I understand the code that’s there but am having trouble finding how to trigger a refresh or whatever the proper thing to do would be.

0reactions
seanpoultercommented, Feb 27, 2018

But the quick pick menu … 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Toggle Coverage - Application Notes - Aldec, Inc
This section presents how to collect toggle coverage data by using the GUI options and the command line and then analyze the results...
Read more >
jest-community/vscode-jest: The optimal flow for Jest ... - GitHub
The coverage state is reflected in test tree toggle menu, as well as StatusBar: ... local jest root and configuration, a multi-root workspaces...
Read more >
Custom Overlays | Maps JavaScript API - Google Developers
Here is a summary of the steps required to create a custom overlay: Set your custom overlay object's prototype to a new instance...
Read more >
Javascript Eventlistener needs refresh after being used
I am learning JavaScript. I tried to implement a simple overlay which transitions on clicking a button and closes after clicking the close ......
Read more >
4G LTE CellSpot setup & help | T-Mobile Support
Select Coverage devices in the bottom left. In the "Customer device use address box," select Edit. Update the address information. Select Save. Open...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found