return { 'nvim-neotest/neotest', dependencies = { 'nvim-neotest/nvim-nio', 'nvim-lua/plenary.nvim', 'antoinemadec/FixCursorHold.nvim', 'nvim-treesitter/nvim-treesitter', 'nvim-neotest/neotest-jest', }, config = function() local neotest = require 'neotest' local neotest_jest = require 'neotest-jest' local neotest_jest_util = require 'neotest-jest.jest-util' neotest.setup { adapters = { neotest_jest { jestCommand = neotest_jest_util.getJestCommand(vim.fn.expand '%:p:h'), -- jestConfigFile = "custom.jest.config.ts", env = { CI = true }, }, }, } end, keys = { { 'tt', function() require('neotest').run.run_last() end, desc = 'Test Last', }, { 'tr', function() require('neotest').run.run() end, desc = 'Test Nearest', }, { 'tf', function() require('neotest').run.run(vim.fn.expand '%') end, desc = 'Test File', }, }, }