I just installed jest globally using yarn in WSL2, however when I tested, it gave me this error, can anybody tell me how to fix this?
These are the steps that I followed when was installing it:
yarn global bin
yarn config set prefix ~/.yarn
Next, I added:
export PATH="$PATH:`yarn global bin`"
to ~/.bashrc
yarn global add jest