Skip to content

Commit b247998

Browse files
committed
Run JS tests on transformed kotlinx-coroutines-core-js module files
todo: use transformed test files, too.
1 parent 9f79186 commit b247998

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

gradle/node-js.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ task prepareNodePackage(type: Copy) {
2626

2727
npmInstall.dependsOn prepareNodePackage
2828

29-
task populateNodeModules(type: Copy, dependsOn: [compileKotlin2Js]) {
30-
from compileKotlin2Js.destinationDir
29+
task populateNodeModules(type: Copy) {
30+
from sourceSets.main.output
3131
into "$node.nodeModulesDir/node_modules"
3232

3333
afterEvaluate {

gradle/test-mocha-js.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ task installDependenciesMochaNode(type: NpmTask, dependsOn: [npmInstall]) {
1313
"mocha-teamcity-reporter@$mocha_teamcity_reporter_version"]
1414
}
1515

16+
// todo: use atomicfu-transformed test files here (not critical)
1617
task testMochaNode(type: NodeTask, dependsOn: [compileTestKotlin2Js, installDependenciesMochaNode]) {
1718
script = file("$node.nodeModulesDir/node_modules/mocha/bin/mocha")
1819
args = [compileTestKotlin2Js.outputFile, '--require', 'source-map-support/register']

0 commit comments

Comments
 (0)