-
-
Notifications
You must be signed in to change notification settings - Fork 652
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
Change from jest to vitest on packages/cli
#368
Comments
Another thing Let me know what you folks think, and we can start to work on it |
@ologbonowiwi I think this is a great idea, although I think we should use vitest instead of jest, mainly because of this: |
What if we use the Node native test runner? |
Before run any package, I see I'll need to change /cli first, because this one is using jest |
For the node native test runner, we just need to make sure that the Node version required would be supported in CI (which I'd imagine it would be, but let's check that before we move ahead). We use GitHub actions 👍 The other thing to check would be TypeScript support. If both those are good, then yea let's definitely use the Node test runner. We should probably also include the Node requirement in the CONTRIBUTING doc |
According to this comment, it's working well using the We can use another loader or even build to JavaScript and then run the tests over the I'll do a POC moving the current tests to the node test runner and open a PR soon. |
Hey @ericallam, I was on PTO, but I'm back now. I've been thinking about the Node native test runner, and although it would be nice to know more about the new native test runner, I see that maybe this wouldn't be a good mid-term solution for us. I'll go with Vitest as you recommended; when creating tests, we can use native assertions or think of a plan to make it easier to migrate to the native in the future. Would you happen to have any thoughts on this? |
Vitest sounds good to me 👍 |
@ericallam I created the PR moving from jest to Vitest. Can you review it? |
@ologbonowiwi nice one! |
Well, in this case I'll change the title to match what was done |
packages/cli
@matt-aitken @ericallam, which other packages do we need to prioritize to have tests? Everything under |
Probably just these two for now:
|
We recently set it up
jest
onpackages/cli
, and I think that we should do the same for other sub-packages to have an easier way to create tests to new code.I see that this would benefit the project, but I want your input on how to prioritize each packages we need to set it up first.
The text was updated successfully, but these errors were encountered: