Converting from testing-library to vitest API #7467
kwojcik
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Wanted to share a neat prompt for converting from testing-library tests to the new vitest API. I first started writing an autofix lint rule to do this, but I quickly realized that would have to cover too many cases. This prompt works pretty well in copilot to convert tests, maybe you need to add more info to the prompt to handle some quirks of your specific use cases.
Beta Was this translation helpful? Give feedback.
All reactions