Skip to content

Commit

Permalink
test: add in another test for an oddly nested example
Browse files Browse the repository at this point in the history
  • Loading branch information
ckipp01 committed Aug 17, 2023
1 parent 8422234 commit b0e1fc3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/tests/root_dir_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ else
)
end)

it("should correctly find the root in an odly nested multi-build sbt project", function()
local expected = multi_build_example:expand()
eq(
expected,
root_dir.find_root_dir(
{ "build.sbt" },
Path:new(multi_build_example:expand(), "other", "nested", "src", "main", "scala", "example", "Hello.scala").filename,
2 -- set to two here because we want to skip the other/nested/buid.sbt
)
)
end)

it("should correctly find the root in a minimal mill build", function()
local expected = mill_minimal:expand()
eq(
Expand Down

0 comments on commit b0e1fc3

Please sign in to comment.