Open arnonrdp opened 1 year ago
Hi @arnonrdp! 👋
It looks like you provided an invalid or unsupported reproduction URL. Do not use any service other than Codepen, jsFiddle, StackBlitz, Codesandbox, and GitHub. Make sure the URL you provided is correct and reachable. You can test it by visiting it in a private tab, another device, etc. Please edit your original post above and provide a valid reproduction URL as explained.
Without a proper reproduction, your issue will have to get closed.
Thank you for your collaboration. 👏
I ran into this issue too. Since execCommand is not implemented in jsdom or happy-dom, I was able to get past this by mocking it. Add global.document.execCommand = vi.fn()
in the test.
Hi, i managed to solve this
I mocked the execCommand function before mounting the component.
window.document.execCommand = vi.fn() (vitest)
window.document.execCommand = jest.fn(); (jest)
What happened?
When running
vitest
I receive the following error:What did you expect to happen?
I was hoping the test wasn't interrupted by an error in the
node_modules/quasar
folderReproduction URL
N/A
How to reproduce?
I didn't create a replay URL as it's not applicable to use the command line in one of them.
To reproduce the error it is necessary to create a
q-editor
, in my case myq-editor
is encapsulated inside aq-field
:Then run
vitest
.Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite), PWA Mode
Platforms/Browsers
Other
Quasar info output
Relevant log output
No response
Additional context
No response