Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit f27c5b9

Browse files
anton-bannykhcy6erGn0m
authored andcommitted
Fix js-tests on Windows
1 parent 3ffe7cb commit f27c5b9

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

gradle/js-tests/frontend-plugin/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
}
77
dependencies {
88
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.4-eap-33'
9-
classpath "org.jetbrains.kotlin:kotlin-frontend-plugin:0.0.19"
9+
classpath "org.jetbrains.kotlin:kotlin-frontend-plugin:0.0.26"
1010
}
1111
}
1212

@@ -24,6 +24,8 @@ dependencies {
2424
}
2525

2626
kotlinFrontend {
27+
downloadNodeJsVersion = "latest"
28+
2729
npm {
2830
devDependency("karma")
2931
}

gradle/js-tests/jasmine/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ task installJasmine(type: NpmTask) {
4444
}
4545

4646
task runJasmine(type: NodeTask, dependsOn: [compileTestKotlin2Js, populateNodeModules, installJasmine]) {
47-
script = file('node_modules/.bin/jasmine')
47+
script = file('node_modules/jasmine/bin/jasmine.js')
4848
args = [compileTestKotlin2Js.outputFile]
4949
}
5050

gradle/js-tests/jest/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ task installJest(type: NpmTask) {
4444
}
4545

4646
task runJest(type: NodeTask, dependsOn: [compileTestKotlin2Js, populateNodeModules, installJest]) {
47-
script = file('node_modules/.bin/jest')
47+
script = file('node_modules/jest/bin/jest.js')
4848
args = [compileTestKotlin2Js.outputFile]
4949
}
5050

gradle/js-tests/mocha/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ task installMocha(type: NpmTask) {
4444
}
4545

4646
task runMocha(type: NodeTask, dependsOn: [compileTestKotlin2Js, populateNodeModules, installMocha]) {
47-
script = file('node_modules/.bin/mocha')
47+
script = file('node_modules/mocha/bin/mocha')
4848
args = [compileTestKotlin2Js.outputFile]
4949
}
5050

gradle/js-tests/qunit/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ task installQunit(type: NpmTask) {
4444
}
4545

4646
task runQunit(type: NodeTask, dependsOn: [compileTestKotlin2Js, populateNodeModules, installQunit]) {
47-
script = file('node_modules/.bin/qunit')
47+
script = file('node_modules/qunitjs/bin/qunit')
4848
args = [projectDir.toPath().relativize(file(compileTestKotlin2Js.outputFile).toPath())]
4949
}
5050

gradle/js-tests/tape/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ task installTape(type: NpmTask) {
4242
}
4343

4444
task testTape(type: NodeTask, dependsOn: [compileTestKotlin2Js, populateNodeModules, installTape]) {
45-
script = file('node_modules/.bin/tape')
45+
script = file('node_modules/tape/bin/tape')
4646
args = ['tape-plugin.js', compileTestKotlin2Js.outputFile]
4747
}
4848

0 commit comments

Comments
 (0)