Skip to content

Commit

Permalink
Cleanup BUCK setup for our JVM tests (#39061)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #39061

We're suppressing JVM tests using BUCK which is causing misalignment between which tests we run on Buck vs Gradle.
Instead we should be using the Ignore annotation (which we already do) to decide which tests to skip, so that Buck can just pick all the Java/Kotlin file in this folder.

Changelog:
[Internal] [Changed] - Cleanup BUCK setup for our JVM tests

Reviewed By: cipolleschi

Differential Revision: D48433432

fbshipit-source-id: 31070ef848932aefa5d2710a8e11f97646e4b51c
  • Loading branch information
cortinico authored and facebook-github-bot committed Aug 21, 2023
1 parent eb3d5a4 commit ffa5742
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ package com.facebook.react.fabric.interop
import com.facebook.react.bridge.JavaOnlyMap
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContext
import com.facebook.testutils.fakes.FakeEventDispatcher
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNotNull
import org.junit.Before
Expand All @@ -21,7 +22,7 @@ import org.robolectric.RuntimeEnvironment
@RunWith(RobolectricTestRunner::class)
class InteropEventEmitterTest {
lateinit var reactContext: ReactContext
lateinit var eventDispatcher: FakeEventDispatcher
private lateinit var eventDispatcher: FakeEventDispatcher

@Before
fun setup() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,19 @@ class ReactPropConstantsTest {
}

override fun createShadowNodeInstance(): ReactShadowNode<*>? {
Assertions.fail<Any>("This method should not be executed as a part of this test")
return null
error("This method should not be executed as a part of this test")
}

override fun createViewInstance(reactContext: ThemedReactContext): View {
Assertions.fail<Any>("This method should not be executed as a part of this test")
return View(reactContext)
error("This method should not be executed as a part of this test")
}

override fun getShadowNodeClass(): Class<out ReactShadowNode<*>> {
return ReactShadowNode::class.java
}

override fun updateExtraData(root: View, extraData: Any) {
Assertions.fail<Any>("This method should not be executed as a part of this test")
error("This method should not be executed as a part of this test")
}

@ReactProp(name = "boolProp") fun setBoolProp(v: View?, value: Boolean) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

@file:Suppress("DEPRECATION") // Suppressing as RCTEventEmitter is part of the API
package com.facebook.react.fabric.interop
package com.facebook.testutils.fakes

import com.facebook.react.uimanager.events.BatchEventDispatchedListener
import com.facebook.react.uimanager.events.Event
Expand Down

0 comments on commit ffa5742

Please sign in to comment.