Yarn
Wallaby.js supports projects that use Yarn.
To start Wallaby with a Yarn
project, start Wallaby as you normally would for your testing framework.
Resolving Dependency Issues
Some Wallaby internals need to dynamically load your project dependencies
and patch them both at runtime and in the file system. Depending on your project type
and the packages you are using, sometimes Wallaby may fail to load without modifications
to your .yarnrc.yml
file.
If this happens for your project, an error similar to the one below will be reported
to your Wallaby Console
:
If this happens for your project, you need to add those packages as dependencies of your project
in your .yarnrc.yml
using the packageExtensions
section. After adding the packages
be sure to run:
Repeat the process until all dependency issues have been resolved.
Jest Settings
If you are using jest
with Yarn
, you need to set your packageExtensions
as shown below: