kendo-vue icon indicating copy to clipboard operation
kendo-vue copied to clipboard

[Bug][Inputs] Vitest fail if @progress/kendo-vue-inputs is included in the optimizeDeps array

Open filipKovachev opened this issue 2 years ago • 0 comments

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:

  1. Open this example: https://stackblitz.com/edit/node-yhuhsn?file=vitest.config.js
  2. Notice how the tests currently fail
  3. If you comment out '@progress/kendo-vue-inputs' the tests pass

Ticket ID: 1632412

filipKovachev avatar Nov 30 '23 22:11 filipKovachev