Skip to content

Commit

Permalink
fix: allow files to be read properly
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Mar 28, 2024
1 parent afc8d93 commit 5bead5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/charm-freeze/test_all.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ local child = MiniTest.new_child_neovim()
local T = MiniTest.new_set({
hooks = {
pre_case = function()
child.restart()
child.lua([[P = require('.///////lua/charm-freeze')]])
child.restart({ "-u", "tests/init.lua" })
child.lua([[P = require('charm-freeze')]])
end,
-- Stop once all test cases are finished
post_once = child.stop,
Expand Down
1 change: 1 addition & 0 deletions tests/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function M.setup()
vim.env.XDG_DATA_HOME = M.root(".tests/data")
vim.env.XDG_STATE_HOME = M.root(".tests/state")
vim.env.XDG_CACHE_HOME = M.root(".tests/cache")
vim.cmd([[let &rtp.=",".getcwd()]])
end

M.setup()

0 comments on commit 5bead5c

Please sign in to comment.