From 0ab84b5e7a9c7e54b07df348a111fe5abf211ce4 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Wed, 2 Oct 2024 17:01:22 +0200 Subject: [PATCH] add luatest --- lua/plugins/test.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lua/plugins/test.lua diff --git a/lua/plugins/test.lua b/lua/plugins/test.lua new file mode 100644 index 0000000..2acbf58 --- /dev/null +++ b/lua/plugins/test.lua @@ -0,0 +1,24 @@ +return { + 'nvim-neotest/neotest', + dependencies = { + 'nvim-neotest/nvim-nio', + 'nvim-lua/plenary.nvim', + 'antoinemadec/FixCursorHold.nvim', + 'nvim-treesitter/nvim-treesitter', + '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, +}