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
replace mocha with vitest #175
Conversation
felixroos
commented
Aug 6, 2022
- refactored all the tests to vitest syntax
- tune test not yet refactored
- blocked by cannot assign imported module to globalThis vitest-dev/vitest#1807
+ ignore tune test for now + add happy-dom
fixes #145 |
waiting for vitest@0.21.1 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 |