Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade vitest to 3.0.6 (#9337)
https://linear.app/unleash/issue/2-3296/upgrade-vitest Follow-up to #9212 The ☝️ PR was failing some tests because `chartjs-adapter-date-fns` is imported as a [side effect](https://stackoverflow.com/questions/41127479/es6-import-for-side-effects-meaning) and seems to be CommonJS-only. When Vitest loads it, it fails to find named exports (like `_adapters`). By inlining `chartjs-adapter-date-fns` in our Vitest test config, esbuild transforms it into a proper ES module for testing. Additionally, we’re upgrading from v1.4.0 to v3.0.6 directly since our code seems to be fully compatible. >Vitest requires Vite >=v5.0.0 and Node >=v18.0.0
- Loading branch information