Stencil private Jest typings overriding standard jest-dom types in Vite environment #6060
AlmeroSteyn
started this conversation in
Stencil Testing
Replies: 1 comment 1 reply
-
Not at the moment. I would recommend though to may try a different setup with WebdriverIO or Playwright. These tools do test the component in an actual browser instead of using a fake implementation (jest-dom). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using the @ArcGIS libraries in a project and Stencil is installed as a dependency from those libraries. Once Stencil was updated from 4.18 to 4.20 the jest types inside @stencil/core/internal/utils/stencil-private.d.ts started overriding the toHaveAttribute function definition I need from @testing-library/jest-dom
Should this private types file be published to the npm package?
The only way I can fix this is to create another types file to again override the global jest definition for this function.
Any other ideas?
Beta Was this translation helpful? Give feedback.
All reactions