fix(test): mock caches and everything else

This commit is contained in:
Barrett Ruth 2025-09-21 12:26:06 -04:00
parent 1822714a0c
commit 373e7f6e76
5 changed files with 51 additions and 5 deletions

View file

@ -6,9 +6,9 @@ function M.set_config(user_config)
config = user_config
end
function M.log(msg, level)
function M.log(msg, level, override)
level = level or vim.log.levels.INFO
if not config or config.debug or level >= vim.log.levels.WARN then
if not config or config.debug or level >= vim.log.levels.WARN or override then
vim.notify(('[cp.nvim]: %s'):format(msg), level)
end
end