neotest
This commit is contained in:
37
nvim/lua/plugins/neotest.lua
Normal file
37
nvim/lua/plugins/neotest.lua
Normal file
@@ -0,0 +1,37 @@
|
||||
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,
|
||||
}
|
||||
Reference in New Issue
Block a user