{"id":15439334,"url":"https://github.com/yaegassy/coc-vitest","last_synced_at":"2025-04-19T18:59:32.509Z","repository":{"id":37441281,"uuid":"469599496","full_name":"yaegassy/coc-vitest","owner":"yaegassy","description":"Vitest for coc.nvim","archived":false,"fork":false,"pushed_at":"2023-07-06T23:51:19.000Z","size":229,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T15:04:09.030Z","etag":null,"topics":["coc","coc-extensions","coc-nvim","neovim","vim","vitest"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yaegassy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-14T05:57:59.000Z","updated_at":"2023-07-26T20:20:33.000Z","dependencies_parsed_at":"2024-10-23T05:29:20.443Z","dependency_job_id":null,"html_url":"https://github.com/yaegassy/coc-vitest","commit_stats":{"total_commits":52,"total_committers":2,"mean_commits":26.0,"dds":"0.019230769230769273","last_synced_commit":"dbd4412bdc87ce9270f8fddb187ab31a3b4ab2a5"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-vitest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-vitest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-vitest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-vitest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaegassy","download_url":"https://codeload.github.com/yaegassy/coc-vitest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249771295,"owners_count":21323077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coc","coc-extensions","coc-nvim","neovim","vim","vitest"],"created_at":"2024-10-01T19:04:44.796Z","updated_at":"2025-04-19T18:59:32.490Z","avatar_url":"https://github.com/yaegassy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coc-vitest\n\n[Vitest](https://github.com/vitest-dev/vitest) for [coc.nvim](https://github.com/neoclide/coc.nvim)\n\n![coc-vitest-demo](https://user-images.githubusercontent.com/188642/158115056-55710c75-cf08-4eb0-82a1-3c1337b16b99.gif)\n\n## Install\n\n**CocInstall**:\n\n```vim\n:CocInstall @yaegassy/coc-vitest\n```\n\n\u003e scoped packages\n\n**vim-plug**:\n\n```vim\nPlug 'yaegassy/coc-vitest', {'do': 'yarn install --frozen-lockfile'}\n```\n\n## Configuration options\n\n- `vitest.enable`: Enable coc-vitest extension, default: `true`\n- `vitest.terminal.enableSplitRight`: Use vertical belowright for vitest terminal window, default: `false`\n- `vitest.codelens.enable`: Enable codelens, default: `true`\n- `vitest.codelens.title`: CodeLens title. Can be changed to any display, default: `\"\u003e\u003e [Run Vitest]\"`\n- `vitest.watch`: Run tests in watch mode, default: `false`\n\n## Commands\n\n\u003e :CocCommand [CommandName]\n\u003e\n\u003e **e.g.**:\n\u003e :CocCommand vitest.projectTest\n\n- `vitest.projectTest`: Run Vitest for current project\n- `vitest.fileTest`: Run Vitest for current file\n- `vitest.singleTest`: Run Vitest for single (nearest) test\n\n**Example of Vim command and key mapping**:\n\nVim commands can be defined and executed or key mappings can be set and used.\n\n```vim\n\" Run Vitest for current project\ncommand! -nargs=0 Vitest :call CocAction('runCommand', 'vitest.projectTest')\n\n\" Run Vitest for current file\ncommand! -nargs=0 VitestCurrent :call  CocAction('runCommand', 'vitest.fileTest', ['%'])\n\n\" Run Vitest for single (nearest) test\nnnoremap \u003cleader\u003ete :call CocAction('runCommand', 'vitest.singleTest')\u003cCR\u003e\n```\n\n## CodeLens (Neovim only)\n\n**Feature**:\n\nCodeLens appears above the test name in the `*.test.ts` and `*.spec.ts` files. Currently, `import.meta.vitest` is not supported.\n\n**coc-settings.json**:\n\nBy default, `codeLens.enable` is set to `false`, which disables it.\n\nChange the setting to `true` to enable it.\n\n```jsonc\n{\n  \"codeLens.enable\": true\n}\n```\n\n**Example key mapping (CodeLens related)**:\n\n```vim\nnmap \u003csilent\u003e gl \u003cPlug\u003e(coc-codelens-action)\n```\n\n**Misc**:\n\n\"CodeLens\" does not work with \"Vim8\" due to coc.nvim specifications.\n\n`vitest.singleTest` commands are available, so please use them.\n\n## Similar coc.nvim extension\n\n- [coc-jest](https://github.com/neoclide/coc-jest)\n\n## Thanks\n\n- [vitest-dev/vitest](https://github.com/vitest-dev/vitest)\n- [jest-community/jest-editor-support](https://github.com/jest-community/jest-editor-support)\n\n## License\n\nMIT\n\n---\n\n\u003e This extension is built with [create-coc-extension](https://github.com/fannheyward/create-coc-extension)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegassy%2Fcoc-vitest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaegassy%2Fcoc-vitest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegassy%2Fcoc-vitest/lists"}