Skip to content

mattkubej/jest.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jest.nvim

Ability to invoke jest within nvim.

Inspired by coc-jest, which is dependent on coc.nvim.

Requirements

  • Neovim
  • Jest (within node_modules of working project)

Installation

vim-plug

Plug 'mattkubej/jest.nvim'

packer.nvim

use 'mattkubej/jest.nvim'

Default configuration

require'nvim-jest'.setup {
  -- Jest executable
  -- By default finds jest in the relative project directory
  -- To override with an npm script, provide 'npm test --' or similar
  jest_cmd = '/relative/project/dir/node_modules/jest/bin/jest.js',

  -- Prevents tests from printing messages
  silent = true,
}

Usage

Command Description
:Jest Run Jest on entire project
:JestFile Run Jest on file in current buffer
:JestSingle Run Jest on test name under cursor
:JestCoverage Run Jest on entire project with coverage

About

nvim plugin for running jest

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published