Hello,
We're using Yarn 3 with PnP in our mono-repo, and find that ava is creating unwanted node_modules directories in our workspace (with node_modules/.cache/ava/failing-tests.json) This is a result of
|
const cacheDir = path.join(projectDir, 'node_modules', '.cache', 'ava'); |
Sometimes the existence of node_modules confuses the pnp patched executables (eg. eslint), so the mere existence of node_modules can sometimes cause issues with things working reliable.
It would be great if you supported some manner of specifying the cache directory or simply defaulted to projectDir/.ava and recommended adding .ava to the .gitignore.
Thanks!
Hello,
We're using Yarn 3 with PnP in our mono-repo, and find that ava is creating unwanted
node_modulesdirectories in our workspace (withnode_modules/.cache/ava/failing-tests.json) This is a result ofava/lib/cli.js
Line 256 in f047694
Sometimes the existence of
node_modulesconfuses the pnp patched executables (eg.eslint), so the mere existence ofnode_modulescan sometimes cause issues with things working reliable.It would be great if you supported some manner of specifying the cache directory or simply defaulted to
projectDir/.avaand recommended adding.avato the.gitignore.Thanks!