22 lines
436 B
Lua
22 lines
436 B
Lua
return {
|
|
{
|
|
"nvim-neotest/neotest",
|
|
dependencies = {
|
|
"haydenmeade/neotest-jest",
|
|
},
|
|
opts = function(_, opts)
|
|
table.insert(
|
|
opts.adapters,
|
|
require("neotest-jest")({
|
|
jestCommand = "npm test",
|
|
jestConfigFile = "jest.config.ts",
|
|
-- env = { CI = true },
|
|
cwd = function()
|
|
return vim.fn.getcwd()
|
|
end,
|
|
})
|
|
)
|
|
end,
|
|
},
|
|
}
|