Skip to content

Commit 86912a9

Browse files
committed
fix main.define.test compilation
1 parent 6d31805 commit 86912a9

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

main/define/test/src/mill/define/BasePathTests.scala

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ import mill.testkit.TestBaseModule
55
import utest._
66

77
object BasePathTests extends TestSuite {
8+
9+
object overriddenBasePath extends TestBaseModule {
10+
override def millSourcePath = os.pwd / "overriddenBasePathRootValue"
11+
object nested extends Module {
12+
override def millSourcePath = super.millSourcePath / "overriddenBasePathNested"
13+
object nested extends Module {
14+
override def millSourcePath = super.millSourcePath / "overriddenBasePathDoubleNested"
15+
}
16+
}
17+
}
18+
819
val testGraphs = new TestGraphs
920
val tests = Tests {
1021
def checkMillSourcePath[T <: Module](m: T)(f: T => Module, segments: String*): Unit = {
@@ -54,15 +65,6 @@ object BasePathTests extends TestSuite {
5465
checkMillSourcePath(TestGraphs.nestedCrosses)(_.cross("210").cross2("js"), "cross", "cross2")
5566
}
5667
test("overridden") {
57-
object overriddenBasePath extends TestBaseModule {
58-
override def millSourcePath = os.pwd / "overriddenBasePathRootValue"
59-
object nested extends Module {
60-
override def millSourcePath = super.millSourcePath / "overriddenBasePathNested"
61-
object nested extends Module {
62-
override def millSourcePath = super.millSourcePath / "overriddenBasePathDoubleNested"
63-
}
64-
}
65-
}
6668
assert(
6769
overriddenBasePath.millSourcePath == os.pwd / "overriddenBasePathRootValue",
6870
overriddenBasePath.nested.millSourcePath == os.pwd / "overriddenBasePathRootValue/nested/overriddenBasePathNested",

0 commit comments

Comments
 (0)