Skip to content

Fix Wasm commonTest compilation warnings - #38

Draft
jingtang10 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-wasm-github-actions-job
Draft

Fix Wasm commonTest compilation warnings#38
jingtang10 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-wasm-github-actions-job

Conversation

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown

The Wasm job was failing during commonTest compilation due to missing ExperimentalWasmJsInterop opt-ins in Compose UI tests, with additional noise from invalid IntelliJ-generated _root_ide_package_ references.

  • Wasm test compilation

    • Opted datacapture commonTest into kotlin.js.ExperimentalWasmJsInterop at the source-set level.
    • This covers existing Compose UI test usage without annotating individual test files/functions.
  • Test source cleanup

    • Removed synthetic _root_ide_package_ qualifiers from QuantityViewFactoryTest.
    • Switched those call sites to the locally defined quantity(...) helper already in the file.
  • Resulting shape

    • Keeps production code untouched.
    • Limits the fix to shared test compilation settings and one affected test file.
commonTest {
  languageSettings.optIn("kotlin.js.ExperimentalWasmJsInterop")

  dependencies {
    implementation(libs.kotlin.test)
    implementation(libs.kotest.assertions.core)
    implementation(compose.uiTest)
  }
}

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'Wasm' Fix Wasm commonTest compilation warnings Jul 8, 2026
Copilot AI requested a review from jingtang10 July 8, 2026 11:14
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.

2 participants