strudel
strudel copied to clipboard
replace mocha with vitest
- refactored all the tests to vitest syntax
- tune test not yet refactored
- blocked by https://github.com/vitest-dev/vitest/issues/1807
fixes https://github.com/tidalcycles/strudel/issues/145
waiting for [email protected] https://www.npmjs.com/package/vitest
i have now refactored all tests to vitest + now using the snapshot feature instead of the custom solution. unfortunately, it's actually slower than mocha by ~50% so I am a bit disappointed.. it seems vitest has had a performance drop lately, so hopefully this will get better soon
i think it's still better, because the dev mode seems much quicker + the snapshot feature alone will be of great use. also, if we decide to move to typescript later, this will automatically work. I'll merge this