Hello, I’m trying to test a minimal React component that imports from @vscode-elements/react-elements using vitest ( and jsdom), but Vitest fails on a transitive import from @vscode-elements/elements:
Cannot find module '../includes/VscElement' imported from .../elements/dist/vscode-tree/vscode-tree.js
Repro: https://github.com/dankeboy36/vscode-react-elements-vitest-example
Is there a recommended Vitest/jsdom setup for these components?
I confirm that if I fully mock all VS Code elements, it works, but I prefer testing my app with the actual VS Code UI. Am I doing this wrong? Thank you!