38 lines
1020 B
Lua
38 lines
1020 B
Lua
return {
|
|
"nvim-neotest/neotest",
|
|
dependencies = {
|
|
"nvim-neotest/nvim-nio",
|
|
"nvim-lua/plenary.nvim",
|
|
"antoinemadec/FixCursorHold.nvim",
|
|
"nvim-treesitter/nvim-treesitter",
|
|
"marilari88/neotest-vitest",
|
|
"nvim-neotest/neotest-jest",
|
|
"nvim-neotest/neotest-plenary",
|
|
},
|
|
config = function()
|
|
require("neotest").setup({
|
|
adapters = {
|
|
|
|
require("neotest-jest")({
|
|
jestCommand = "npm test --",
|
|
jestArguments = function(defaultArguments, context)
|
|
return defaultArguments
|
|
end,
|
|
jestConfigFile = "custom.jest.config.ts",
|
|
env = { CI = true },
|
|
cwd = function(path)
|
|
return vim.fn.getcwd()
|
|
end,
|
|
isTestFile = require("neotest-jest.jest-util").defaultIsTestFile,
|
|
}),
|
|
require("neotest-vitest"),
|
|
require("neotest-plenary"),
|
|
|
|
--require("neotest-vim-test")({
|
|
-- ignore_file_types = { "python", "vim", "lua" },
|
|
-- }),
|
|
},
|
|
})
|
|
end,
|
|
}
|