You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently implemented vitest in our project together with React testing library and started writing tests for our components.
While using the datepicker i get a unhandled rejection error from vitest just implementing it.
Expected Behavior
No error when just rendering the component
Current Behavior
ReferenceError: e is not defined
❯ node_modules/@axa-ch/datepicker/lib/index.react.js:7:1972
54| `:""}
55| ${this.open&&!o||!this.inputfield?e`
56| <div class="m-datepicker__wrap js-datepicker__wrap">
| ^
57| <div class="m-datepicker__article">
58| <div class="m-datepicker__dropdown-wrap">
❯ HTMLElement.render node_modules/@axa-ch/datepicker/lib/index.react.js:8:17627
❯ HTMLElement.update node_modules/lit-element/src/lit-element.ts:160:24
❯ HTMLElement.performUpdate node_modules/@lit/reactive-element/src/reactive-element.ts:1331:14
❯ node_modules/@axa-ch/datepicker/lib/index.react.js:8:17215
I recently implemented vitest in our project together with React testing library and started writing tests for our components.
While using the datepicker i get a unhandled rejection error from vitest just implementing it.
Expected Behavior
No error when just rendering the component
Current Behavior
Steps to Reproduce
Just run the tests with datepicker implemented
Implemented datepicker
Implemented with Formik as a component:
example test:
Context (Environment)
"vitest": "^0.29.3"
"@vitest/ui": "^0.29.3",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"jsdom": "^21.1.1",
The text was updated successfully, but these errors were encountered: