File tree Expand file tree Collapse file tree 5 files changed +31
-2265
lines changed
build-logic/src/main/kotlin/kotlinx/io/conventions Expand file tree Collapse file tree 5 files changed +31
-2265
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ kotlin {
4040 @OptIn(org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl ::class )
4141 wasm {
4242 nodejs()
43- browser()
43+ // Disabled because we can't exclude some tests: https://youtrack.jetbrains.com/issue/KT-58291
44+ // browser()
4445 binaries.executable()
4546 }
4647
Original file line number Diff line number Diff line change @@ -31,6 +31,18 @@ kotlin {
3131 }
3232 }
3333
34+ @OptIn(org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl ::class )
35+ wasm {
36+ nodejs {
37+ testTask(Action {
38+ useMocha {
39+ timeout = " 300s"
40+ }
41+ filter.setExcludePatterns(" *SmokeFileTest*" )
42+ })
43+ }
44+ }
45+
3446 sourceSets {
3547 commonMain {
3648 dependencies {
Original file line number Diff line number Diff line change 55
66package kotlinx.io.files
77
8- import kotlinx.io.*
8+ import kotlinx.io.Sink
9+ import kotlinx.io.Source
910
1011
1112public actual class Path internal constructor(private val path : String ,
@@ -18,9 +19,9 @@ public actual fun Path(path: String): Path {
1819}
1920
2021public actual fun Path.source (): Source {
21- TODO ()
22+ TODO (" Paths are not supported for Wasm target " )
2223}
2324
2425public actual fun Path.sink (): Sink {
25- TODO ()
26+ TODO (" Paths are not supported for Wasm target " )
2627}
Original file line number Diff line number Diff line change 55
66package kotlinx.io
77
8- import kotlin.random.Random
9- import kotlin.random.nextULong
10-
118actual fun createTempFile (): String {
12- TODO ()
9+ TODO (" Paths are not supported for Wasm target " )
1310}
1411
1512actual fun deleteFile (path : String ) {
16- TODO ()
13+ TODO (" Paths are not supported for Wasm target " )
1714}
You can’t perform that action at this time.
0 commit comments