napperley
09/05/2018, 10:44 PMProject#afterEvaluate(Closure) on project ':js' cannot be executed in the current context.
. This is the part in the build file that causes the error to occur:
val runJest by tasks.creating(NodeTask::class) {
val outputUri = (compileTestKotlin2Js as Kotlin2JsCompile).outputFile.toURI()
dependsOn(installJest, compileTestKotlin2Js, populateNodeModules, generateTestDir)
setScript(File("$projectDir/node_modules/jest/bin/jest.js"))
addArgs(projectDir.toURI().relativize(outputUri))
}