Skip to content

Neotest adapter for Node.js native test runner

License

devastion/neotest-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neotest-node

Adapter for neotest framework to use Node.js native test runner.

Setup

Native Neovim Package Manager (0.12+)

vim.pack.add({
  "https://github.com/nvim-neotest/neotest",
  "https://github.com/nvim-neotest/nvim-nio",
  "https://github.com/nvim-lua/plenary.nvim",
  "https://github.com/nvim-treesitter/nvim-treesitter",
  "https://github.com/devastion/neotest-node",
}, { confirm = false })

require("neotest").setup({
  adapters = {
    require("neotest-node"),
  },
})

lazy.nvim

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
}

Roadmap

  • Support only tests
  • Create nvim-dap configuration

Credits

About

Neotest adapter for Node.js native test runner

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published