Support Yarn Plug'n'Play #3132
-
I am stumped trying to run AVA on Yarn PnP and wondering how feasible it currently is, whether there may be some insight I missed, or how I might go about adding native support for PnP to AVA. I ran into chalk/chalk#531 and worked around it as described on that thread. That got AVA to load, but it crashes on the first import. In PnP, most Node.js commands work by running
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
AVA follows the module system as defined by Node.js — it's up to Yarn to not break that. |
Beta Was this translation helpful? Give feedback.
-
A fix for yarnpkg/berry#3843 was just merged, so anyone following this issue may want to try running AVA on the latest Yarn PnP once it's released. |
Beta Was this translation helpful? Give feedback.
-
The fix is available in
... according to yarnpkg/berry#4895 See yarnpkg/berry#3591 for v4 breaking changes. I've seen two mentions of people stumbling over |
Beta Was this translation helpful? Give feedback.
-
Update: the fix that adds support for the |
Beta Was this translation helpful? Give feedback.
Update: the fix that adds support for the
package.json
includes
field is also in the Yarn3.2.4
release.