Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Public API for Third Party Component Testing Integrations #25637

Closed
lmiller1990 opened this issue Jan 30, 2023 · 2 comments
Closed

Support Public API for Third Party Component Testing Integrations #25637

lmiller1990 opened this issue Jan 30, 2023 · 2 comments
Assignees
Labels
CT Issue related to component testing Epic Requires breaking up into smaller issues

Comments

@lmiller1990
Copy link
Contributor

lmiller1990 commented Jan 30, 2023

Cypress has a first class onboarding experience for some of the most popular frameworks (Angular, React...). Integrating Cypress with non-supported frameworks is more challenging.

Ideally, third party integrations should enjoy the same great experience. We will create a public API that allows third parties to "plug in" to our onboarding experience.

Examples of frameworks that could use this API:

@lmiller1990
Copy link
Contributor Author

This is coming in Cypress 12.7 #25780

Docs for anyone excited/waiting: cypress-io/cypress-documentation#5069

If anyone wants to collab on a new integration, we can work together, please ping me 💯

I made one integration for Solid.js to test it out https://github.com/lmiller1990/cypress-ct-solid-js works great! You define two things:

And that's it - Cypress finds your package in node_modules and slots it in, alongside our officially supported frameworks, you get the scaffolding/onboarding etc for free. No doubt the API will continue to evolve, but a good start!

@lmiller1990 lmiller1990 added CT Issue related to component testing and removed ct-core labels Mar 8, 2023
@lmiller1990
Copy link
Contributor Author

We did it! https://docs.cypress.io/guides/component-testing/third-party-definitions.

A few implementations popped up, such as Solid.js, Lit and Qwik is coming soon 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CT Issue related to component testing Epic Requires breaking up into smaller issues
Projects
None yet
Development

No branches or pull requests

1 participant