From 37671797d6e5f9bd0ee3ab965ab2e6de251e1930 Mon Sep 17 00:00:00 2001 From: Zephyr Lykos Date: Sat, 18 May 2024 01:10:11 +0800 Subject: [PATCH] fix: tests & ci --- test/minimal_init.lua | 1 + test/spec/e2e_spec.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/test/minimal_init.lua b/test/minimal_init.lua index 2b21eaa5..b2417fb1 100644 --- a/test/minimal_init.lua +++ b/test/minimal_init.lua @@ -35,6 +35,7 @@ function M.setup() end vim.o.swapfile = false +vim.treesitter.start = function() end _G.__TEST = true M.setup() diff --git a/test/spec/e2e_spec.lua b/test/spec/e2e_spec.lua index 19a070dd..acd8ee0c 100644 --- a/test/spec/e2e_spec.lua +++ b/test/spec/e2e_spec.lua @@ -395,6 +395,7 @@ describe("e2e", function() describe("cached generator", function() local actions, null_ls_action before_each(function() + sources._reset() sources.register(builtins._test.cached_code_action) tu.edit_test_file("test-file.txt") tu.wait()