-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running vim-test in javascript or typescript results in "No test file" #660
Comments
What happens if you open one of the fixture folders for the jest or mocha specs and try running vim-test? |
Not entirely sure if you're talking about specific fixture folders for something. |
I have the same error, although I must say I haven't used the plugin in a while.
|
Okay found it for me. In our project we are using yarn (node-linker). Which when I initially ran it didn't work. I tested further, turns out all that's needed is a empty |
The above fix does nothing for me, I'm using a monorepo with https://rushjs.io/ (which uses pnpm underneath). Edit: There's a package.json in the src folder that is required for running nwjs/electron, and vim-test is finding this over the one in root. It then determines it does not in fact contain jest. I've fixed this by renaming the file and having it moved to the right spot by webpack. |
@NervosaX what exactly did you do? I'm using a monorepo (with a package.json in root folder) and not sure what you mean. I installed jest in root but that is not what I want, |
I'm using a monorepo as well and what it worked for me was to move the My example:
so I moved my current working directory into |
I've searched around without finding a solution, and I'm not entirely sure how to go further in debugging this.
I've tried renaming the file
.test.ts
and_test.ts
, which nothing seem to work. Also tried running javascript files, no luck.I've tried with both
jest
andmocha
. I can assure you that the libraries are inpackage.json
the vim-test installation should be ok as I'm able to run tests written in Go.
It's a clean vim-test install with no extra configuration
any suggestions?
The text was updated successfully, but these errors were encountered: