From 7923c3f1afb57775da360a46ae8e4b242283feb5 Mon Sep 17 00:00:00 2001 From: "markus.dieckmann" Date: Tue, 16 Jun 2026 14:33:23 +0200 Subject: [PATCH] neotest --- nvim/lua/plugins/neotest.lua | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 nvim/lua/plugins/neotest.lua diff --git a/nvim/lua/plugins/neotest.lua b/nvim/lua/plugins/neotest.lua new file mode 100644 index 0000000..2fa1f35 --- /dev/null +++ b/nvim/lua/plugins/neotest.lua @@ -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, +}