You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite the existence of lwc-test and its various @lwc/jest-* packages, this repo itself does not require Jest. So we can switch to another test runner if we want.
...And I kind of want to. After trying to upgrade Prettier to v3 (#4140) and noticing how thoroughly broken ESM support in Jest still is to this day, my wandering eye turns to Vitest. Which I know from experience is pretty dang fast, has decent Jest API compat, and doesn't require any special tooling other than standard Rollup plugins.
It would probably be an effort on our end since we have a lot of tricky jest.config.js files and custom matchers, but it should be doable to switch over. Then we can really make some progress on upgrading Prettier and other dependencies that require ESM.
The text was updated successfully, but these errors were encountered:
It would probably be an effort on our end since we have a lot of tricky jest.config.js files and custom matchers, but it should be doable to switch over.
If vitest is like the other frameworks and lets you bring your own assertion library, we could do this in parts if we need to. We could do a framework migration first, then a "simple assertions" migration, then custom matchers last.
Despite the existence of
lwc-test
and its various@lwc/jest-*
packages, this repo itself does not require Jest. So we can switch to another test runner if we want....And I kind of want to. After trying to upgrade Prettier to v3 (#4140) and noticing how thoroughly broken ESM support in Jest still is to this day, my wandering eye turns to Vitest. Which I know from experience is pretty dang fast, has decent Jest API compat, and doesn't require any special tooling other than standard Rollup plugins.
It would probably be an effort on our end since we have a lot of tricky
jest.config.js
files and custom matchers, but it should be doable to switch over. Then we can really make some progress on upgrading Prettier and other dependencies that require ESM.The text was updated successfully, but these errors were encountered: