A language server for the Jest Testing Framework.
Tests are run on file: open, change and save. Currently only .spec and .test files will trigger a test run.
- Diagnostics: just about
- Code Completion: wip
- Code Actions: wip
- Auto Complete: wip
Install Jest LSP globally using any package manager
npm i -g jest-lsp
yarn global add jest-lsp
pnpm add -g jest-lsp
Jest LSP should work with any language server client, but there are some examples here.
Add the following to coc-settings.json (:CocSettings)
"languageserver": {
"jest": {
"module": Path to jest-lsp (i.e. output of `which jest-lsp`),
"args": ["--node-ipc"],
"filetypes": [
"typescript",
"javascript",
"typescriptreact",
"javascriptreact"
],
"trace.server": "verbose"
}
},