marilari88 / neotest-vitest

Vitest adapter for Neovim Neotest plugin
106 stars 33 forks source link

Feature request: Support for monorepo (`pnpm` workspace) #23

Closed xeho91 closed 8 months ago

xeho91 commented 1 year ago

Hi,

thank you for this fantastic plugin :heart:

Problem description

I am using pnpm as package manager and workspace for the monorepo. I have noticed an issue, where your plugin couldn't detect the test files in sub-packages inside the monorepo (directory packages/). I have vitest installed at the root of the monorepo, and none of the packages has vitest as dependency in their own package.json file.


Temporary workaround

The workaround is to install vitest as dependency in each of a package, then your plugin will detect the files.