[[Neotest]]を試してみる。 ## インストール [[init.lua]]の[[lazy.nvim]]設定に追加。とりあえず[[Jest]]で。 ```lua "nvim-neotest/neotest-jest", { "nvim-neotest/neotest", dependencies = { "nvim-lua/plenary.nvim", "nvim-treesitter/nvim-treesitter", "antoinemadec/FixCursorHold.nvim" }, config = function() require("neotest").setup({ adapters = { require('neotest-jest')({ jestCommand = "npm test --", jestConfigFile = "jest.config.js", env = { CI = true }, cwd = function(path) return vim.fn.getcwd() end, }), } }) end }, ``` > [!negative] [[Windows]]だと色々動きが怪しかったのでやめた方がよさそう... > [!hint] neotest-jestでテストが見つからない問題 > https://github.com/nvim-neotest/neotest-jest/pull/44/commits/e2b10006e43ef7473caaac850c1cb092d73dff35 で解消はできるがマージされていない