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

How to test a mitosis component ? #1268

Open
1 of 11 tasks
jeco123 opened this issue Oct 5, 2023 · 1 comment
Open
1 of 11 tasks

How to test a mitosis component ? #1268

jeco123 opened this issue Oct 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jeco123
Copy link

jeco123 commented Oct 5, 2023

I am interested in helping provide a feature!

Yes

Which generators are impacted?

  • All
  • Angular
  • HTML
  • Qwik
  • React
  • React-Native
  • Solid
  • Stencil
  • Svelte
  • Vue
  • Web components

What problem does this feature solve?

I would like to develop my components using the TDD approach. It is necessary for me to have a test environement that can interpret a "mitosis component" in order to implement a test first and implement the code at a second time.

What does the proposed API look like?

I like the Stencil approach with their test environment.

Could be great to develop this kind of stuff.

Additional Information

No response

@jeco123 jeco123 added the enhancement New feature or request label Oct 5, 2023
@samijaber
Copy link
Contributor

Right now, the most useful way to test a mitosis component is to:

  • pick one of the generated outputs (e.g. Qwik)
  • import it into a webapp (e.g. a Qwikcity app)
  • run integration tests on that (e.g. using playwright)

At Builder, we have a playwright integration tests suite that runs in parallel against multiple servers, each importing a different Mitosis output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants