Skip to content

Fix RN tests in preparation for D54783723#43458

Closed
rubennorte wants to merge 1 commit into
facebook:mainfrom
rubennorte:export-D54849485
Closed

Fix RN tests in preparation for D54783723#43458
rubennorte wants to merge 1 commit into
facebook:mainfrom
rubennorte:export-D54849485

Conversation

@rubennorte
Copy link
Copy Markdown
Contributor

Summary:
The React sync in D54783723 was failing because some tests were relying on console.error being called as console.error('Some message') but it was refactored as console.error('%s..', 'Some message'), making them fail.

This fixes the tests by formatting the arguments passed to the console functions and checking against that instead.

Changelog: [internal]

Differential Revision: D54849485

Summary:
The React sync in D54783723 was failing because some tests were relying on `console.error` being called as `console.error('Some message')` but it was refactored as `console.error('%s..', 'Some message')`, making them fail.

This fixes the tests by formatting the arguments passed to the console functions and checking against that instead.

Changelog: [internal]

Differential Revision: D54849485
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Mar 13, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D54849485

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in dceda56.

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. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants