- Notifications
You must be signed in to change notification settings - Fork410
Integration with cypress#445
-
Hi, Does anyone have a solution to integrate |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 18 replies
-
I'd love to have something like that. It'd be great if we could export lower level functions that implement the logic of the checks that each assertion does. Then another library (perhaps a @testing-library/cypress-dom` library) could then implement Cypress-centric chai-like assertions while re-using the same implementation. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Good. just one more thing to ask. Does the project's setup or toolchain matter? Or Are there any conventions I have to follow? |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thanks,@eps1lon for that reply. Indeed, that's a very good approach.
It'd be good if you base your initial repo structure off of copying the way jest-dom is set up. In particular, the way the package json scripts section works, which is mostly based on kcd-scripts, and how it does versioning. This will allow the automated semantic versioning to work, and make it easier to automate releases on PR merges. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Okay, I'll try to set up the structure and the scripts as is in |
BetaWas this translation helpful?Give feedback.
All reactions
-
About TypeScript, definitely. About vitest and pnpm, I have never used them, so I may be negatively biased here, but I would not want this package to divert too much from the developer experience in all the other packages in testing-library. It is my understanding that we mostly use jest and npm. But feel free to make your case here if you feel strongly about it. Or let's see what others think. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hey again, It's been quite a while 😁, and eventually, I got some time and wrote a couple of assertions. Here's therepo. There ain't much but I think it's enough for an alpha release to test if the API integrates properly with |
BetaWas this translation helpful?Give feedback.