@@ -25,8 +25,12 @@ node {
25
25
// -- Testing with Mocha under Node
26
26
27
27
task installDependenciesMochaNode (type : NpmTask ) {
28
- args = [' install' , ' mocha' , ' source-map-support' , ' --no-save' ]
29
- if (project. hasProperty(" teamcity" )) args + = ' mocha-teamcity-reporter'
28
+ args = [' install' ,
29
+ " mocha@$mocha_version " ,
30
+ " source-map-support@$source_map_suport_version " ,
31
+ ' --no-save' ]
32
+ if (project. hasProperty(" teamcity" )) args + = [
33
+ " mocha-teamcity-reporter@$mocha_teamcity_reporter_version " ]
30
34
}
31
35
32
36
task prepareMochaNode (dependsOn : [compileTestKotlin2Js, populateNodeModules, installDependenciesMochaNode])
@@ -43,8 +47,14 @@ test.dependsOn testMochaNode
43
47
// -- Testing with Mocha under headless Chrome
44
48
45
49
task installDependenciesMochaChrome (type : NpmTask ) {
46
- args = [' install' , ' mocha-headless-chrome' , " kotlin@$kotlin_version " , " kotlin-test@$kotlin_version " , ' --no-save' ]
47
- if (project. hasProperty(" teamcity" )) args + = ' mocha-teamcity-reporter'
50
+ args = [' install' ,
51
+ " mocha@$mocha_version " ,
52
+ " mocha-headless-chrome@$mocha_headless_chrome_version " ,
53
+ " kotlin@$kotlin_version " ,
54
+ " kotlin-test@$kotlin_version " ,
55
+ ' --no-save' ]
56
+ if (project. hasProperty(" teamcity" )) args + = [
57
+ " mocha-teamcity-reporter@$mocha_teamcity_reporter_version " ]
48
58
}
49
59
50
60
task prepareMochaChrome (dependsOn : [compileTestKotlin2Js, populateNodeModules, installDependenciesMochaChrome])
0 commit comments