Skip to content

Commit

Permalink
[Wasm] Since webpack emits wasm file by its own we don't need to proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgonmic authored and teamcity committed Sep 25, 2024
1 parent 4384d14 commit 2e3370f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5242,23 +5242,6 @@ public final class org/jetbrains/kotlin/gradle/targets/js/testing/karma/KarmaCon
public fun <init> (Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V
}

public final class org/jetbrains/kotlin/gradle/targets/js/testing/karma/KarmaFile {
public fun <init> (Ljava/lang/String;ZZZ)V
public final fun component1 ()Ljava/lang/String;
public final fun component2 ()Z
public final fun component3 ()Z
public final fun component4 ()Z
public final fun copy (Ljava/lang/String;ZZZ)Lorg/jetbrains/kotlin/gradle/targets/js/testing/karma/KarmaFile;
public static synthetic fun copy$default (Lorg/jetbrains/kotlin/gradle/targets/js/testing/karma/KarmaFile;Ljava/lang/String;ZZZILjava/lang/Object;)Lorg/jetbrains/kotlin/gradle/targets/js/testing/karma/KarmaFile;
public fun equals (Ljava/lang/Object;)Z
public final fun getIncluded ()Z
public final fun getPattern ()Ljava/lang/String;
public final fun getServed ()Z
public final fun getWatched ()Z
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
}

public final class org/jetbrains/kotlin/gradle/targets/js/testing/karma/KarmaStackTraceProcessorKt {
public static final fun processKarmaStackTrace (Ljava/lang/String;)Ljava/lang/String;
public static final fun processWebpackName (Ljava/lang/String;)Ljava/lang/String;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ data class KarmaConfig(
val proxies: MutableMap<String, String> = mutableMapOf()
)

data class KarmaFile(
val pattern: String,
val included: Boolean,
val served: Boolean,
val watched: Boolean
)

data class KarmaClient(
val args: MutableList<String> = mutableListOf()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,16 +346,6 @@ class KotlinKarma(
config.files.add(npmProject.require("kotlin-web-helpers/dist/kotlin-test-karma-runner.js"))
if (!debug) {
if (platformType == KotlinPlatformType.wasm) {
val wasmFile = file.parentFile.resolve("${file.nameWithoutExtension}.wasm")
val wasmFileString = wasmFile.normalize().absolutePath
config.files.add(
KarmaFile(
pattern = wasmFileString,
included = false,
served = true,
watched = false
)
)
config.files.add(
createLoadWasm(npmProject.dir.getFile(), file).normalize().absolutePath
)
Expand Down Expand Up @@ -387,17 +377,6 @@ class KotlinKarma(
config.frameworks.add("karma-kotlin-debug")
}

val resources = object {
val pattern = file.parentFile.resolve("**/*").normalize().absolutePath
val watched = false
val included = false
}

config.files.add(
resources
)
config.proxies["/"] = "/base/kotlin/"

if (config.browsers.isEmpty()) {
error("No browsers configured for $task")
}
Expand Down

0 comments on commit 2e3370f

Please sign in to comment.