LazyVim setup for NeoTest and Native Node.js Test Runner

The simplest and most effective approach involves using the devastion/neotest-node plugin. Create a configuration file at ~/.config/nvim/lua/plugins/neotest-node.lua Configuration return { "nvim-neotest/neotest", dependencies = { "nvim-neotest/nvim-nio", "nvim-lua/plenary.nvim", "nvim-treesitter/nvim-treesitter", "devastion/neotest-node", }, config = function() require("neotest").setup({ adapters = { require("neotest-node"), }, }) end, } The configuration specifies neotest as the core framework with neotest-node as the adapter for Node.js test execution. All required dependencies are declared and initialized during plugin setup. ...

December 28, 2025 · Geoff Corey

LazyVim setup for NeoTest and Jest

The setup involves creating a plugin configuration file that leverages the neotest-jest adapter. Save the following 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, }, } Key Components Plugin Dependencies: The configuration specifies neotest-jest as a dependency for the main neotest plugin Jest Command: Configured to use "npm test --" as the execution command Config File Reference: Points to jest.config.js for test configuration Working Directory: Dynamically retrieves the current vim working directory Related Content Native Node.js test runner integration with NeoTest Gemini AI coding experiments NeoVim AI coding assistance using Avante Claude AI coding collaboration

December 20, 2025 · Geoff Corey

LazyVim + neotest-mocha and overcoming "No test found"

Overview The author transitioned from AstroVim to LazyVim and configured neotest-mocha for test running in NeoVim. The setup required careful attention to file discovery patterns. Installation Steps Mason Tools Installed bash-language-server eslint_d gitui js-debug-adapter lua-language-server marksman prettierd shellcheck, shfmt sqlfluff stylua typescript-language-server vtsls Lazy Extras Loaded dap.core, dap.nlua editor.inc-rename, editor.neo-tree formatting.prettier linting.eslint lsp.none-ls test.core util.gitui, vscode Configuration A plugin configuration file was created at ~/.config/nvim/lua/plugins/neotest with neotest-mocha adapter setup. The config includes custom command arguments handling context data for test execution. ...

September 7, 2025 · Geoff Corey