jazzer.js
jazzer.js copied to clipboard
Add support for Vitest in addition to jest
https://vitest.dev/ is a popular testing framework among those who use https://vite.dev and vite derived build tools like https://astro.build, it'd be great to see integration here for that testing ecosystem as well!
Prior art might be seen in https://github.com/dubzzz/fast-check/pull/3217
Thanks for the suggestion and linked code example. The integration into fast-check looks quite simple.
Added to the ever growing list of good possible additions :+1: In the meantime, feel free to give it a try yourself, we would love some contributions to the project.
I'm excited to try it out! Would probably end up updating https://github.com/jasikpark/fuzz-prettier or adding a JS based fuzzer to withastro/compiler in addition to my golang attempts..
Just updated to use the jest integration in https://github.com/jasikpark/fuzz-prettier, it's so nice! Excited to update to jazzer.js 2.0.0 to get the tighter TypeScript integration 👍
How do I need to update my jest config to remove ts-jest? I thought the release notes had mentioned that..
You should just need to remove it. babel-jest is the default and can handle Typescript but won't do type checking. https://github.com/CodeIntelligenceTesting/jazzer.js/pull/635 should mean that ts-jest will work properly again though and should be merged soon.