LazyVim setup for NeoTest and Jest
Decided to setup Jest testing with my NeoVim using NeoTest and doing the Gemini AI coding article. Pretty straight forward with lazyvim. Created the following file to .config/nvim/lua/plugins/neotest-jest.lua`
return {
{
"haydenmeade/neotest-jest",
},
{
"nvim-neotest/neotest",
dependencies = { "haydenmeade/neotest-jest" },
opts = function(_, opts)
table.insert(
opts.adapters,
require("neotest-jest")({
jestCommand = "npm test --",
jestConfigFile = "jest.config.js",
cwd = function()
return vim.fn.getcwd()
end,
})
)
end,
},
}