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
If jest adds better ESM support, if we drop jest (#4153), or if we change that test file, then we will be able to upgrade to prettier v3.
Note that we can run NODE_OPTIONS=--experimental-vm-modules yarn test to fix the error when importing prettier, but that causes a different error when jest internals try to import @parse5/tools.
See #4384 and #4140 for prior attempts to do this.
The text was updated successfully, but these errors were encountered:
Jest currently does not play well with ESM packages. Prettier v3 is a purely ESM package. We use prettier in our jest tests.
lwc/packages/@lwc/template-compiler/src/__tests__/fixtures.spec.ts
Line 10 in 1733916
If jest adds better ESM support, if we drop jest (#4153), or if we change that test file, then we will be able to upgrade to prettier v3.
Note that we can run
NODE_OPTIONS=--experimental-vm-modules yarn test
to fix the error when importing prettier, but that causes a different error when jest internals try to import@parse5/tools
.See #4384 and #4140 for prior attempts to do this.
The text was updated successfully, but these errors were encountered: