JPS JS: simplified the code and added tests for the missing meta.js case (e.g. empty sourceroot; fixed by yole in 00ed0248d9a23701dbef52da02259d174a9999e7)
This commit is contained in:
@@ -371,6 +371,11 @@ class KotlinJpsBuildTest : AbstractKotlinJpsBuildTestCase() {
|
||||
assertEquals(Collections.EMPTY_SET, contentOfOutputDir(PROJECT_NAME))
|
||||
}
|
||||
|
||||
fun testKotlinJavaScriptProjectWithEmptyDependencies() {
|
||||
initProject(JS_STDLIB)
|
||||
makeAll().assertSuccessful()
|
||||
}
|
||||
|
||||
fun testKotlinJavaScriptProjectWithTests() {
|
||||
initProject(JS_STDLIB)
|
||||
makeAll().assertSuccessful()
|
||||
@@ -387,9 +392,8 @@ class KotlinJpsBuildTest : AbstractKotlinJpsBuildTestCase() {
|
||||
buildResult.assertSuccessful()
|
||||
|
||||
val warnings = buildResult.getMessages(BuildMessage.Kind.WARNING)
|
||||
assertEquals("Warning about duplicate module definition: $warnings", 2, warnings.size)
|
||||
assertEquals("Warning about duplicate module definition: $warnings", 1, warnings.size)
|
||||
assertEquals("Module \"srcAndTests\" is defined in more, than one file", warnings[0].messageText)
|
||||
assertEquals("Module \"srcAndTests\" is defined in more, than one file", warnings[1].messageText)
|
||||
}
|
||||
|
||||
fun testKotlinJavaScriptProjectWithTwoSrcModuleDependency() {
|
||||
|
||||
Reference in New Issue
Block a user