From 1351aba4013a569c288c8d0bf30bf77c27cca578 Mon Sep 17 00:00:00 2001 From: Jackson Taylor Date: Tue, 30 Jan 2024 19:55:35 -0500 Subject: plugins: Install neotest I hope to get this working well enough where I can run tests from within neovim --- lua/jacksontaylorxyz/packer.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lua/jacksontaylorxyz/packer.lua b/lua/jacksontaylorxyz/packer.lua index ca25675..8cde1ec 100644 --- a/lua/jacksontaylorxyz/packer.lua +++ b/lua/jacksontaylorxyz/packer.lua @@ -119,6 +119,26 @@ return require('packer').startup(function(use) } use {'fatih/vim-go', run = ':GoUpdateBinaries' } -- Nice Golang plugin use 'buoto/gotests-vim' -- Better Golang Testing (generates tests for you) + use({ -- Test runner (WIP) + 'nvim-neotest/neotest', + requires = { + 'nvim-neotest/neotest-jest', + }, + config = function() + require('neotest').setup({ + adapters = { + require('neotest-jest')({ + jestCommand = "npm test --", + jestConfigFile = "custom.jest.config.ts", + env = { CI = true }, + cwd = function(path) + return vim.fn.getcwd() + end, + }), + } + }) + end + }) -- Fun things use 'eandrju/cellular-automaton.nvim' -- Animations on your code -- cgit v1.2.3