return { { "nvim-neotest/neotest", dependencies = { "haydenmeade/neotest-jest", "marilari88/neotest-vitest", }, keys = { { "tl", function() require("neotest").run.run_last() end, desc = "Run Last Test", }, { "tL", function() require("neotest").run.run_last({ strategy = "dap", suite = true }) end, desc = "Debug Last Test", }, { "tw", "lua require('neotest').run.run({ jestCommand = 'jest --watch ' })", desc = "Run Watch", }, }, opts = function(_, opts) table.insert( opts.adapters, require("neotest-jest")({ jestCommand = "npm test --", jestConfigFile = "custom.jest.config.ts", env = { CI = true }, cwd = function() return vim.fn.getcwd() end, }) ) table.insert(opts.adapters, require("neotest-vitest")) end, }, }