30 lines
592 B
Lua
30 lines
592 B
Lua
return {
|
|
{
|
|
'nvim-neotest/neotest',
|
|
config = function ()
|
|
require('neotest').setup({
|
|
adapters = {
|
|
require('neotest-jest')({
|
|
jestCommand = "npm test --",
|
|
jestConfigFile = "custom.jest.config.ts",
|
|
cwd = function(path)
|
|
return vim.fn.getcwd()
|
|
end,
|
|
}),
|
|
}
|
|
})
|
|
end,
|
|
dependencies = {
|
|
'nvim-neotest/nvim-nio',
|
|
'nvim-lua/plenary.nvim',
|
|
'antoinemadec/FixCursorHold.nvim',
|
|
'nvim-treesitter/nvim-treesitter',
|
|
'nvim-neotest/neotest-jest'
|
|
}
|
|
},
|
|
{
|
|
'andythigpen/nvim-coverage',
|
|
dependencies = { 'nvim-lua/plenary.nvim' }
|
|
}
|
|
}
|