diff --git a/packages/react-native/ReactCommon/react/renderer/templateprocessor/tests/UITemplateProcessorTest.cpp b/packages/react-native/ReactCommon/react/renderer/templateprocessor/tests/UITemplateProcessorTest.cpp index b0b4ddbd925..d021990a686 100644 --- a/packages/react-native/ReactCommon/react/renderer/templateprocessor/tests/UITemplateProcessorTest.cpp +++ b/packages/react-native/ReactCommon/react/renderer/templateprocessor/tests/UITemplateProcessorTest.cpp @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +#if RN_DEBUG_STRING_CONVERTIBLE + #include #include @@ -164,3 +166,5 @@ TEST(UITemplateProcessorTest, testConditionalBytecode) { root2->getChildren().at(0)->getProps()); ASSERT_STREQ(child_props2->testId.c_str(), "cond_false"); } + +#endif