Vitest throwing on the document.queryCommandSupported
in the a dependency
#614
Replies: 3 comments 1 reply
-
Is is possible to polyfill it in vitest? I think it's your best chance |
Beta Was this translation helpful? Give feedback.
0 replies
-
Does this not also mean that the monaco-vscode-api is using a deprecated method |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks! I was not aware that vs code was doing it. Thank you @CGNonofr |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am running vitest on my project and it throws an error "TypeError: document.queryCommandSupported is not a function" from the monaco-vscode-api library in: "node_modules/vscode/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js:16:92".
When opening the clipboard.js, I see that the
document.queryCommandSupported
has been deprecated: https://developer.mozilla.org/en-US/docs/Web/API/Document/queryCommandSupportedFrom the monaco-languageclient repo, I see there are some unit tests and running successfully.
Any suggestions as to how circumvent the vitest error?
Beta Was this translation helpful? Give feedback.
All reactions