34 lines
695 B
Lua
34 lines
695 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'
|
|
},
|
|
keys = {
|
|
{ '<leader>tt', function() require("neotest").run.run() end }
|
|
}
|
|
},
|
|
{
|
|
'andythigpen/nvim-coverage',
|
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
|
event = 'VeryLazy'
|
|
}
|
|
}
|