Skip to content

Fix wasmJs browser tests and switch core to Node.js#40

Merged
linroid merged 4 commits intomainfrom
ci/wasmjs-nodejs-tests
Feb 11, 2026
Merged

Fix wasmJs browser tests and switch core to Node.js#40
linroid merged 4 commits intomainfrom
ci/wasmjs-nodejs-tests

Conversation

@linroid
Copy link
Owner

@linroid linroid commented Feb 11, 2026

Summary

  • Replace kotlinx.io.files.Path with String in the api module so it no longer depends on kotlinx-io, fixing wasmJs browser test crashes (Path calls require('os') which is unavailable in ChromeHeadless)
  • DownloadRequest.directory is now String? (nullable); DownloadState.Completed.filePath is now String
  • Move PathSerializer to core module (internal) for TaskRecord persistence
  • Switch library/core wasmJs target from browser to nodejs() since core still uses kotlinx-io internally
  • Add both wasmJsBrowserTest and wasmJsNodeTest CI steps

Test plan

  • ./gradlew :library:api:wasmJsBrowserTest passes
  • ./gradlew :library:api:jvmTest passes
  • ./gradlew :library:core:jvmTest passes
  • ./gradlew :library:core:wasmJsNodeTest passes
  • ./gradlew :library:sqlite:jvmTest passes
  • ./gradlew :server:test passes
  • CI runs both wasmJsBrowserTest and wasmJsNodeTest successfully

🤖 Generated with Claude Code

kotlinx.io.files.Path requires Node.js APIs (require('os')) that are
unavailable in ChromeHeadless browser tests. Switch core module from
disabled browser tests to nodejs() and add wasmJsNodeTest CI step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

Test Results

672 tests  +180   672 ✅ +181   11s ⏱️ +5s
 60 suites + 18     0 💤 ±  0 
 60 files   + 18     0 ❌  -   1 

Results for commit 4f53728. ± Comparison against base commit a52ec8f.

♻️ This comment has been updated with latest results.

@claude
Copy link

claude bot commented Feb 11, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

linroid and others added 3 commits February 11, 2026 17:51
DownloadRequest.directory is now String? (nullable) and
DownloadState.Completed.filePath is now String, removing the
kotlinx.io dependency from the api module. PathSerializer moved
to core module (internal) for TaskRecord persistence.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@linroid linroid changed the title Switch core wasmJs tests to Node.js Fix wasmJs browser tests and switch core to Node.js Feb 11, 2026
@linroid linroid merged commit 5b3d423 into main Feb 11, 2026
7 checks passed
@linroid linroid deleted the ci/wasmjs-nodejs-tests branch February 11, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant