@yaegassy/coc-vitest
yaegassyVitest for coc.nvim
Published Package Summary
coc-vitest

Install
CocInstall:
:CocInstall @yaegassy/coc-vitest
scoped packages
vim-plug:
Plug 'yaegassy/coc-vitest', {'do': 'pnpm install'}
CodeLens (Neovim only)
Feature:
CodeLens appears above the test name in the *.test.ts and *.spec.ts files. Currently, import.meta.vitest is not supported.
coc-settings.json:
By default, codeLens.enable is set to false, which disables it.
Change the setting to true to enable it.
{
"codeLens.enable": true
}
Example key mapping (CodeLens related):
nmap <silent> gl <Plug>(coc-codelens-action)
Misc:
"CodeLens" does not work with "Vim8" due to coc.nvim specifications.
vitest.singleTest commands are available, so please use them.
Similar coc.nvim extension
Thanks
License
MIT
This extension is built with create-coc-extension
- Vitest for coc.nvim
- onLanguage:typescript
- onLanguage:javascript
- onLanguage:typescriptreact
- onLanguage:javascriptreact
Want to build, test, or contribute to coc.nvim extensions? Explore our official SDK and testing toolkits.
Open Developer GuideVersion History
This published npm package does not include a history.md or changelog.md file. Browse its npm versions or repository releases for available release information.
Contributed Commands
All contributes.commands entries from the published package manifest for @yaegassy/coc-vitest@0.4.1.
| Command (:CocCommand) | Description |
|---|---|
| vitest.projectTest | Run Vitest for current project |
| vitest.fileTest | Run Vitest for current file |
| vitest.singleTest | Run Vitest for single (nearest) test |
Configuration Schema
All contributes.configuration entries from the published package manifest, including each raw property schema for coc-settings.json.
Raw JSON Schema
{
"type": "boolean",
"default": false,
"description": "Run tests in watch mode"
}Raw JSON Schema
{
"type": "boolean",
"default": true,
"description": "Enable coc-vitest extension."
}Raw JSON Schema
{
"type": "string",
"default": ">> [Run Vitest]",
"description": "CodeLens title. Can be changed to any display."
}Raw JSON Schema
{
"type": "boolean",
"default": true,
"description": "Enable codelens."
}Raw JSON Schema
{
"type": "boolean",
"default": false,
"description": "Use vertical belowright for vitest terminal window."
}