Dealing with the deprecated document.queryCommandSupported
#5432
Unanswered
Lemour-sudo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have trouble running vitest (in the "happy-dom" environment) for UI code that uses the deprecated
document.queryCommandSupported
function. This deprecated function is being used by the microsoft/vscoode library in the clipboard file.The UI is rendering quite well in both Chrome and Firefox but it is not working with Vitest as it throws the error that the
document.queryCommandSupported
is not found.Any suggestions on how to get this to work in vitest? Switching the testing environment to "jsdom" throws the same error.
Beta Was this translation helpful? Give feedback.
All reactions