feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
15.04k stars 751 forks source link

chore: vitest #3344

Open fratzinger opened 10 months ago

fratzinger commented 10 months ago

migrate tests to vitest

daffl commented 10 months ago

I'd be open to this if the tests all pass, it run faster and supports a watch mode where it runs a package test suite on code changes.

Personally I was debating of moving everything to the new built-in Node test runner to reduce dependencies and - now that it is stable - also have to worry less about version upgrades (which was finicky sometimes even with Mocha which hasn't really changed much). But it's still clunky to use in some cases. For example, it doesn't support running TypeScript tests recursively (except with a programmatic hack).

daffl commented 8 months ago

I started using Vitest in another project and it is indeed working quite nicely and was the only test runner that worked with ES modules out of the box so this might also help us with the pains from #3375

cloudflare-workers-and-pages[bot] commented 6 months ago

Deploying feathers-dove with  Cloudflare Pages  Cloudflare Pages

Latest commit: ca2608f
Status: ✅  Deploy successful!
Preview URL: https://b9fc15e1.feathers.pages.dev
Branch Preview URL: https://chore-vitest.feathers.pages.dev

View logs

fratzinger commented 6 months ago

CI is broken for some reason. Only package that fails is '@feathersjs/knex' I think. But I don't know why. Please @daffl have a look.