linux-china / vitest-jetbrains-plugin

Vitest JetBrains plugin
https://plugins.jetbrains.com/plugin/19220-vitest-runner
Apache License 2.0
52 stars 6 forks source link

Yarn 3 no node_modules #18

Closed mister-good-deal closed 2 years ago

mister-good-deal commented 2 years ago

When using Yarn 3 package manager with PnP there is no nodes_modules so there is the following error when clicking the vitest icons in IDE

Error running 'vitest -t 'Top bar' src/components/__tests__/the-top-bar.spec.test.ts'

Cannot run program "node_modules/.bin/vitest" (in directory "/home/rom1/Projects/daia-ihm"): error=2, No such file or directory
linux-china commented 2 years ago

Fixed with 0.5.0 version. Please add "packageManager": "yarn@3.2.1" to project's package.json.