jestjs / jest

Delightful JavaScript Testing.
https://jestjs.io
MIT License
43.84k stars 6.39k forks source link

Update GettingStarted.md with current Vite related information #15122

Open Jon-Biz opened 2 weeks ago

Jon-Biz commented 2 weeks ago

Summary

As per #15121 the current information regarding usage with Vite is out of date. The recommended compatibility library vite-jest appears to be unmaintained and is not compatible with the current Vite release.

Additionally, this change points users to Vitest, a currently maintained alternative to which I have found migration relatively painless.

Test plan

No tests, just documentation.

Screenshot 2024-06-11 at 12 39 22 PM
linux-foundation-easycla[bot] commented 2 weeks ago

CLA Signed


The committers listed above are authorized under a signed CLA.

netlify[bot] commented 2 weeks ago

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
Latest commit ccabc42ce40779507756d076045fbd820ec009f3
Latest deploy log https://app.netlify.com/sites/jestjs/deploys/6668a825e26fa80008b3f49a
Deploy Preview https://deploy-preview-15122--jestjs.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

mrazauskas commented 2 weeks ago

Thanks. I was looking at the text again. Perhaps it would be enough to say that Vite's plugins are not compatible with Jest's transforms? And to point to the issue in Vite's repo? Users can find all details and possible solutions there.

Also it does not look right to advertise another testing framework. That's for sure is a red flag (;

StefanoFrazzetto commented 1 week ago

@mrazauskas as a new Vite + Vitest user, I find that it helps having some context about other tools that have been used in the past and are no longer recommended or don't work anymore, since you can still find posts recommending vite-jest on StackOverflow or other places