LazyVim setup for NeoTest and Native Node.js Test Runner

LazyVim setup for NeoTest and Native Node.js Test Runner

Easiest setup that work very well is devastion/neotest-node plugin. Simply add ~/.config/nvim/lua/plugins/neotest-node.lua

Contents

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,
}

You can find my dotfiles on GitLab