vitest
vitest copied to clipboard
TypeError on the Debugger after assigning a `Set` in a constructor
Describe the bug
Vitest extension in vscode shows TypeError after assigning a Set to a private property in a constructor.
Reproduction
- Open the
Debugger.test.tsfile. - Add a breakpoint for the
cElement's assignment (line 18) - Step till the constructor function fires.
- 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
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.
I don't understand how is this issue related to Vitest? Does it not happen in a regular JavaScript file with a default debugger?