Kenneth Andersson
01/31/2020, 9:22 AMIlya Goncharov [JB]
02/02/2020, 7:46 AMnodejs {
testTask {
useMocha {
timeout = "10s"
}
}
}
Kenneth Andersson
02/03/2020, 8:07 AMyogi
05/07/2020, 12:32 PMkarma
) , here is how I did it:
• Create karma.config.d
in the project directory
• Atleast kotlin-gradle 1.3.71
checks this directory for an js
files and blindly appends them to the generated karma.conf.js
[1]
• Create a file karma.config.d/mocha-timeout-override.s
with following content [2]
config.set({
"client": {
"mocha": {
"timeout": 5000
},
},
});
[1] https://github.com/JetBrains/kotlin/blob/7fe66d3456a2e51e5bf228497e81b28a6367766c/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/targets/js/testing/karma/KotlinKarma.kt#L44
[2] http://blog.jonathanargentiero.com/overriding-karma-mocha-default-timeout-2000ms/