-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
SolidJS component test #24494
Comments
Hi, I have had my eye on Solid for a while, let's collaborate. As we learned from #24250 adding a new library is a bit too involved right now. We are thinking about a better public API so third party contributors don't have to figure out how to wire it all up. Here's what I think we should do right now: 1. Create the
|
I finished the work, see cypress-solidjs. And I wrote some test cases, It works very well. |
Next, I will use some real projects to verify this package. |
Nice, looking good so far. I will try it out, too. In Cypress 11 we are removing the |
Solid not like React, but more like Vue or Svelte. for example: // solidjs
const dispose = render(() => <App />, document.getElementById('root'));
dispose(); // unmount // vue
const app = createApp(App)
app.mount('#app')
app.unmount() // unmount
|
Yeah I'd recommend removing unmount for now, until we figure out if we want to have it. If we do, ideally, we'd implement it for all frameworks at once. Any good open source apps using Solid we could add Cypress to and give it a try against some more complex components? |
Okay, I have removed it. Here are some good open source apps that we can try: |
I committed a pr for solidjs component test. see #24587 We can perfect it together haha |
So we are looking at a better public API so third parties can plug into Cypress (including the onboarding where it scaffolds everything) but right now we don't have that. I don't expect this public API to land until 2023 - we are working on other features until the end of this year (like run all specs, performance improvements, etc). In the meantime, I'd recommend publishing to npm and writing some docs on how to set it up and use it, or we can all just collaborate? I am excited to see Solid support. I tried Solid out and I'm really happy with what I see. It has the things I like about React (TSX) and Vue (mutative reactivity) without the foot guns of Hooks or the need to use a specific file/editor plugin (like Vue) to get a first class TS experience. |
Hello, following up on my above comment, I'm working on making Cypress more pluggable so you can easily add support for your favorite framework. I'm tracking my work here: #24991. |
@lmiller1990 lol. Was about to say this. DM me on Discord when you have a recipe and I'll play around with it once it's ready. |
Yessir, will do. I think Solid is a good first candidate. I tried it out, I like it, it's like React without the bad bits 💯 |
Hiya @JessicaSachs @dream2023, we have a public API for this feature coming in the next release.
If either of you is interested, you could either make your own one (we are calling these Framework Definitions) or maintain my Solid.js one. |
Thinks.. I'll give it a try when cypress releases a new version. |
Sure, there's a pre-release here if you want to try it aaf91b8#comments Docs branch: cypress-io/cypress-documentation#5069 (comment) |
What would you like?
Add the component testing function of solidjs.
Why is this needed?
solidjs is a new frontend framework, and it has a high retention rate and interest. I think more and more people will use it
https://2021.stateofjs.com/en-US/libraries/front-end-frameworks
Other
If you are willing to accept a new framework, I think I can contribute the corresponding code.
The text was updated successfully, but these errors were encountered: