Skip to content

RNTester: compile RCTUtilsTests in the RNTesterUnitTests target - #58894

Open
YevheniiKotyrlo wants to merge 1 commit into
react:mainfrom
YevheniiKotyrlo:fix/rntester-rctutils-tests
Open

YevheniiKotyrlo wants to merge 1 commit into
react:mainfrom
YevheniiKotyrlo:fix/rntester-rctutils-tests

Conversation

@YevheniiKotyrlo

Copy link
Copy Markdown

Summary:

packages/rn-tester/RNTesterUnitTests/RCTUtilsTests.m isn't in RNTesterPods.xcodeproj. It's the one test file in RNTesterUnitTests/ with no file reference and no Sources entry, so yarn test-ios never compiles it and testRCTHumanReadableType and testRCTValidateTypeOfViewCommandArgument never run. This adds the file to the RNTesterUnitTests target.

Changelog:

[INTERNAL] [FIXED] - Compile RCTUtilsTests in the RNTesterUnitTests target

Test Plan:

  • xcodebuild test -workspace RNTesterPods.xcworkspace -scheme RNTester -sdk iphonesimulator -destination 'platform=iOS Simulator,id=<udid>' -only-testing:RNTesterUnitTests/RCTUtilsTests: on main it executes no tests; with this change it executes 2, and both pass. Changing the expected value of the first assertion makes the run fail.
  • The whole RNTester scheme, with Metro and the WebSocket test server up as scripts/objc-test.sh test starts them: RNTesterUnitTests 170 tests, 16 skipped, 0 failures, with both RCTUtilsTests cases among them. I ran it on the iOS 18.0 runtime; scripts/.tests.env asks for 18.3.1, which this machine doesn't have.

RNTesterPods.xcodeproj never listed RNTesterUnitTests/RCTUtilsTests.m,
so its two tests were neither compiled nor run.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 6, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Oct 6, 2026
@meta-codesync

meta-codesync Bot commented Oct 7, 2026

Copy link
Copy Markdown

@javache has imported this pull request. If you are a Meta employee, you can view this in D123784162.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant