It's a really simple setup. I'm actually following along with the modern vim book. (I've been using vim emulation on IDEs for years and want to fully dive in).
Anyway, my project structure is:
- jasmine-test
- lib/
- homophoner.js
- node_modules/
- spec/
- Support/
- jasmine.json
- homophonerSpec.js
- .gitignore
- package.json
- lib/
Opening the homophonerSpec.js file and running the :TestSuite command outputs the message "Not a test file" (I have tried running nvim and vim from Windows Terminal)
Note: I only have jasmine installed locally in the package.json file.
{
"name": "test-jasmine",
"version": "1.0.0",
"description": "",
"main": "index.js",
"private": true,
"scripts": {
"test": "jasmine"
},
"author": "",
"license": "ISC",
"devDependencies": {
"jasmine": "^2.8.0",
"lodash-node": "^3.10.2"
}
}
I've tried going through the README, but I cannot find anything that I'm supposed to do. I must be missing a dependency.
I've tried in both vim and nvim wth the same result.
This is the plugin that I am using to try to run the tests https://github.com/vim-test/vim-test
And here's the issue on GitHub.
vim
from the top directory? As in,cd jasmint-test
, thenvim spec/homophonerSpec.js
? I can see how it would need to be in the top-level directory to properly detect which testing framework is in use...