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.

Run/debug buttons placed at wrong position & associated with wrong test name

See original GitHub issue

Consider this file:

image

The buttons are placed at the wrong position in the test, and if I press the Run button, jest will be invoked like this in the console so no tests will be run at all:

node '/workspace/downstream-repository-mining/node_modules/.bin/jest' '/workspace/downstream-repository-mining/test/references\.test\.ts' -t 'getNpmDeps'

Apparently, the heuristic (?) that is used to find the jest cases does not cover my rather uncommon test file here … 😃

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
LinqLovercommented, Jun 2, 2021

Confirmed. So this is officially a low-level issue.

(Haha, I just noticed that I used the “Jest Test Explorer” for this before. 😃 It does not have such a nice editor integration as this project, but the debugger integration is a bit better IMHO. For example, if I run an expect() assertion in the debugging console, with vscode-jest-runner, I see  artifacts in the output, whereas when using “Jest Test Explorer”, jest appears to know that it is not printing to a TTY. Just a notice. 😃)

0reactions
firsttriscommented, Sep 9, 2021

re-open if this issue still persists

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run/Debug configuration: JUnit | IntelliJ IDEA Documentation
JUnit run/debug configurations define how unit tests that are based on the JUnit testing framework should be run.
Read more >
Create and edit run/debug configurations - Android Developers
Open a Java file in the Code Editor. Select a class or method in the code, and then press Control+Shift+T (Command+Shift+T). Select Create...
Read more >
How do I configure PyCharm to run py.test tests?
Run/Debug Configuration -> Defaults -> Python tests -> py.test ... I select Target: module name and put in the module where my tests...
Read more >
Debugging in Visual Studio Code
One of the great things in Visual Studio Code is debugging support. Set breakpoints, step-in, inspect variables and more.
Read more >
Excel Macro Troubleshooting Tips Debug and F8 Key Problems
Troubleshoot Excel macro if error message appears. Use Debug button to find and fix simple problem. Fix F8 key stops working.
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