{"id":55079,"library":"kotlin-test-js","title":"Kotlin Test for JS","description":"Kotlin Test library for JavaScript, providing testing utilities for Kotlin/JS projects.","status":"active","version":"2.4.0","language":"java","source_language":null,"source_url":"https://github.com/JetBrains/kotlin","tags":["kotlin","testing","javascript"],"install":[{"cmd":"<dependency>\n  <groupId>org.jetbrains.kotlin</groupId>\n  <artifactId>kotlin-test-js</artifactId>\n  <version>2.4.0</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.jetbrains.kotlin:kotlin-test-js:2.4.0'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"Test","correct":"kotlin.test.Test"}],"quickstart":{"code":"import kotlin.test.Test\nimport kotlin.test.assertEquals\n\nclass MyTest {\n    @Test\n    fun testAddition() {\n        assertEquals(4, 2 + 2)\n    }\n}","lang":"java","description":"Write a unit test using Kotlin Test annotations."},"warnings":[{"fix":"Select the correct kotlin-test artifact for your target platform.","message":"This artifact is for Kotlin/JS only; use kotlin-test-junit for JVM projects.","severity":"breaking","affected_versions":"*"}],"env_vars":null,"search_vec":"'javascript':9,18 'js':4 'kotlin':1,5,16 'kotlin/js':14 'librari':7 'project':15 'provid':10 'test':2,6,11,17 'util':12","created_at":"2026-06-15T09:35:47.141924+00:00","updated_at":"2026-06-15T09:35:47.141924+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://kotlinlang.org/","github":"https://github.com/JetBrains/kotlin","docs":"https://appdoc.app/artifact/org.jetbrains.kotlin/kotlin-test-js/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}