Files
nvim/lua/plugins/test.lua
Thomas Ruoff 0ab84b5e7a add luatest
2024-10-02 17:01:22 +02:00

25 lines
577 B
Lua

return {
'nvim-neotest/neotest',
dependencies = {
'nvim-neotest/nvim-nio',
'nvim-lua/plenary.nvim',
'antoinemadec/FixCursorHold.nvim',
'nvim-treesitter/nvim-treesitter',
'nvim-neotest/neotest-jest',
},
config = function()
require('neotest').setup {
adapters = {
require 'neotest-jest' {
jestCommand = 'npm test --',
-- jestConfigFile = "custom.jest.config.ts",
-- env = { CI = true },
cwd = function(path)
return vim.fn.getcwd()
end,
},
},
}
end,
}