kendo-vue
kendo-vue copied to clipboard
[Bug][Inputs] Vitest fail if @progress/kendo-vue-inputs is included in the optimizeDeps array
Describe the bug
If we add @progress/kendo-vue-inputs to the optimizeDeps array, tests fail with the following error:
Vitest caught 1 unhandled error during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
TypeError: Cannot read properties of null (reading 'classList')
❯ Proxy.updateValidClass2 node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_fo56y6bpfe2nhj3grsrykjde5q/node_modules/@progress/kendo-vue-inputs/dist/esm/input/Input.js:231:19
otherwise, they pass when tested with other packages
To Reproduce Steps to reproduce the behavior:
- Open this example: https://stackblitz.com/edit/node-yhuhsn?file=vitest.config.js
- Notice how the tests currently fail
- If you comment out '@progress/kendo-vue-inputs' the tests pass
Ticket ID: 1632412