jazzer.js icon indicating copy to clipboard operation
jazzer.js copied to clipboard

Add support for Vitest in addition to jest

Open jasikpark opened this issue 2 years ago • 5 comments

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

jasikpark avatar Feb 23 '23 17:02 jasikpark

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.

bertschneider avatar Feb 24 '23 08:02 bertschneider

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..

jasikpark avatar Feb 24 '23 16:02 jasikpark

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 👍

jasikpark avatar Oct 11 '23 15:10 jasikpark

How do I need to update my jest config to remove ts-jest? I thought the release notes had mentioned that..

jasikpark avatar Oct 12 '23 02:10 jasikpark

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.

br-lewis avatar Oct 12 '23 07:10 br-lewis