firsttris / vscode-jest-runner

Simple way to run or debug one or more tests from context menu, codelens or command plalette
https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner
MIT License
265 stars 124 forks source link

Debug Test doesn't support multiply-nested test #326

Closed aagranovExtend closed 8 months ago

aagranovExtend commented 1 year ago

What works is initiating the debug on the top-level describe, or an it 1-level below the describe. If there are nested describe blocks lower than that 1st-level, initiating debug on the test will not work.

The debugger never attaches.

Environment

node: v18.17.0 OS: macOS Ventura 13.5 vscode-jest-runner: v0.4.66

domsleee commented 11 months ago

Do you mean like this?

describe('nested', () => {
  describe('a', () => {
    it('b', () => {
      expect(true);
    });
  });
});

This scenario seems to work for me

cdaringe commented 8 months ago

3+ months stale without repro. please reopen with example if required