Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run k/wasm tests in resources library #4031

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

eymar
Copy link
Member

@eymar eymar commented Dec 11, 2023

No description provided.

@eymar
Copy link
Member Author

eymar commented Dec 11, 2023

This a follow up to: #4028

@eymar eymar force-pushed the ok/run_kwasm_tests_in_resources_library branch from f1d1abb to 88d7f89 Compare December 12, 2023 14:47
@eymar eymar changed the title run kwasm tests in resources library run k/wasm tests in resources library Dec 12, 2023
@eymar eymar marked this pull request as ready for review December 12, 2023 14:49
@eymar eymar requested a review from terrakok December 12, 2023 14:49
@@ -2,7 +2,9 @@ package org.jetbrains.compose.resources

import kotlinx.coroutines.CoroutineScope

expect fun runBlockingTest(block: suspend CoroutineScope.() -> Unit)
expect class TestReturnType
Copy link
Member Author

@eymar eymar Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test return type is different on platforms:
- void for k/jvm and k/native
- Promise<*> for k/js and k/wasm

Therefore we need to distinguish between them to ensure the compilation works.

@eymar eymar merged commit 382c6a3 into master Dec 18, 2023
@eymar eymar deleted the ok/run_kwasm_tests_in_resources_library branch December 18, 2023 10:33
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