-
Notifications
You must be signed in to change notification settings - Fork 145
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
Add new shareable configurations for libraries #80
Comments
Indeed! Would be nice to include all those presets, and even check if there are special cases for them as async fire event for vue so we can add additional rules to those presets in a next step. I'll try to find more info about what of our current rules could/should be applied for each and share it here for further discussion. |
I did a quick research for Native Testing Library. Even if it's implemented in a completely different way under the hood (as it's not looking for elements in the DOM of course) the main core of the API remains the same. These are the main differences I've found:
So apart from adding the additional query I don't think we would have to do anything else for that one. |
Thanks for the details! For By the way, there is also a difference for Marko Testing Library for |
Maybe we should split this in a project to be able to implement and review each library separated and then merge everything together. |
One not mentioned in the OP is |
@SimenB added to the description! That would need some specific rules I guess so you can limit the queries to only |
I see, something less to worry about! For including cypress within
Is this right? I'm not sure if this is what you meant. |
Yeah, that's what I meant 👍 |
Cool! It should be easy to implement that. I hope after some internal refactors we are doing we can go back to this ticket. Cypress seems like an easy one to add, probably would be nice start from that one. |
React Native Testing Library 2.0 is compatible with the plugin except for one rule! https://callstack.com/blog/react-native-testing-library-2-0/ This will help to create the proper preset for RNTL. |
One thing I noticed when extending the React preset rules for a React Native project, this rule leads to a significant amount of errors: React Native Testing Library does not export |
Hello @ryanjwessel! We still need to work on proper preset rules for React Native, so I'm afraid the React one won't fit 100%. A good example is |
I used for svelte this one - https://github.com/testing-library/eslint-plugin-testing-library/blob/main/lib/configs/vue.ts |
Currently, we are supporting Angular, React and Vue for shareable configurations. The configuration contains the following rules:
It would be nice to add shareable configurations for other libraries such as:
@marko/testing-library
#572Cypress Testing LibraryThere is nothing to cover in Cypress Testing Library. Actually, this plugin must be excluded from Cypress tests.We would need to check that each rule can be applied to these packages.
The text was updated successfully, but these errors were encountered: