From d96d81032827f8c0dbed6cd3624aa2c05b4bdc9f Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sun, 21 Sep 2025 12:34:54 -0400 Subject: [PATCH] fix(ci): var shadowing and proper mocking --- spec/scraper_spec.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/scraper_spec.lua b/spec/scraper_spec.lua index 54e9a8f..36bd310 100644 --- a/spec/scraper_spec.lua +++ b/spec/scraper_spec.lua @@ -189,6 +189,10 @@ describe('cp.scrape', function() return false end + -- Force reload the scrape module to pick up the updated mock + package.loaded['cp.scrape'] = nil + scrape = require('cp.scrape') + vim.system = function(cmd) if cmd[1] == 'ping' then return {