vitest icon indicating copy to clipboard operation
vitest copied to clipboard

TypeError on the Debugger after assigning a `Set` in a constructor

Open mozesstumpf opened this issue 1 year ago • 1 comments

Describe the bug

Vitest extension in vscode shows TypeError after assigning a Set to a private property in a constructor.

image

Reproduction

  1. Open the Debugger.test.ts file.
  2. Add a breakpoint for the cElement's assignment (line 18)
  3. Step till the constructor function fires.
  4. Debugger will show a TypeError for the cElement.

Repository to reproduce: https://github.com/mozesstumpf/vitest-debugger-issue

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 AMD Ryzen 5 5600 6-Core Processor
    Memory: 17.12 GB / 31.89 GB
  Binaries:
    Node: 18.18.0 - C:\Program Files\nodejs\node.EXE
    npm: 9.8.1 - C:\Program Files\nodejs\npm.CMD
    bun: 1.1.10 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (125.0.2535.51)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    vite: ^5.2.11 => 5.2.11
    vitest: ^1.6.0 => 1.6.0

Used Package Manager

npm

Validations

mozesstumpf avatar May 24 '24 15:05 mozesstumpf

I don't understand how is this issue related to Vitest? Does it not happen in a regular JavaScript file with a default debugger?

sheremet-va avatar Oct 02 '24 11:10 sheremet-va