-
Notifications
You must be signed in to change notification settings - Fork 41
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
[FEATURE] Vitest support #295
Comments
While working on this, I noticed that we do not support Our existing code just checks for a first parameter , see testdeck/packages/core/index.ts Line 138 in 49c95ba
to determine whether a given test function/method is async or not. And This will require additional work. |
@adaliszk thanks for the feature request. I am currently looking into it. But why would you use vitest and in addition jest? Does vitest not already provide for the same mechanisms and behaviours? As for testdeck, we cannot support both at the same time, as some test frameworks register their That being said, you might run into issues when using both And, please, let us know about these issues. |
Hey @silkentrance, thank you for looking into it and making quick progress!
My situation is the reverse there. I already have a project using vite and vitest that gave us some excellent tools like their visual reporter and fast iteration cycle. With jest, I often needed to set up transpilation steps to make something work, and vitest was a breeze to not worry about that part. If you mean for the workaround solution, the idea was to write tests with testdeck using jest and let vitest run that as it does have support for it. It is just an extra dependency - and compilation step - that would be nice to drop.
This should be fine on my end; I do not plan to have both of them loaded simultaneously. Luckily in my case, we split our codebase nicely with monorepo packages so we can progress package by package in small increments. |
Hey @silkentrance The The usage for the isAsync is to check if the class method has We currently support things like:
Thank you, P.S. |
As for the dropped |
@adaliszk released v0.3.0 |
Thank you very much @silkentrance! I will be using it shortly in a few projects to gather feedback 😉 |
I've been using Testdeck for a few years to simplify my test cases with classes using Jest, and I am pleased with the quality and massive KUDOs for that! However, recently within our team, we started to look into Vitest as a potential alternative for our testing framework, and I would like to keep my trusty companion 😉
Would it be possible to add first-class Vitest support?
For now, I am looking into using Vitest with Jest, and that way, use Testdeck. Nothing super urgent or anything like that, but I thought we could start a discussion about it at least.
The text was updated successfully, but these errors were encountered: