Skip to content

Commit

Permalink
tests: move some CLI tests around
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Oct 9, 2024
1 parent 29c0bd0 commit 8632e68
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 31 deletions.
File renamed without changes.
11 changes: 11 additions & 0 deletions spec/cli/run_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -370,4 +370,15 @@ describe("tl run", function()
end)
end)

it("compilation errors should be caught when loading modules", function()
util.run_mock_project(finally, {
dir_structure = {
["my_module.tl"] = [[todo, write module :)]],
["my_script.tl"] = [[local mod = require("my_module"); mod.do_things()]],
},
cmd = "run",
args = { "my_script.tl" },
exit_code = 1,
})
end)
end)
31 changes: 0 additions & 31 deletions spec/lang/error_reporting/module_error_spec.lua

This file was deleted.

0 comments on commit 8632e68

Please sign in to comment.