Testing Native JS Components #16558
-
Checked documentation and only provides react and vue. Is there a way to test custom components? Something like
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
By custom component, do you mean a Web component? Or just some arbitrary JS code? I made an example showing how you might create your own We intend to provide more adapters moving forward, for example Svelte, Web Components etc, but in the short term we are primarily focusing on the most popular component frameworks, which are React, Vue and Angular. |
Beta Was this translation helpful? Give feedback.
By custom component, do you mean a Web component? Or just some arbitrary JS code?
I made an example showing how you might create your own
mount
function. You could adapt this for your own use case: https://github.com/cypress-io/cypress-component-examples/tree/main/no-framework. The main code is inmount.js
.We intend to provide more adapters moving forward, for example Svelte, Web Components etc, but in the short term we are primarily focusing on the most popular component frameworks, which are React, Vue and Angular.