Closed tuanbass closed 11 months ago
If you are using npm
you could try lua require('neotest').run.run({ jestCommand = 'npx jest --watch ' })
It search for local package at first
If you are using
npm
you could trylua require('neotest').run.run({ jestCommand = 'npx jest --watch ' })
It search for local package at first
@KostkaBrukowa. Thanks for the answer.
Actually, it's exactly what I used to overcome the issue. (even though, it's a small annoy, when I'm using yarn
as the package manager, and only npm
for npx
).
Could we update this into the README? it took me few hours to figure out why my test does not run.
You can probably make a PR with explanation if you want (I'm not the maintainer) But on the other hand "yarn" also have its own "npx". It's just "yarn jest --watch" and it should work the same
I try both:
and
Both produces error message:
Install
jest
at global solve problem, but it's not what I would like to do, as I work in different project which using different version ofjest
.neotest
should usejest
in the project, not the global one.