Skip to content

Clarify Fantom test mode selection - #60314

Merged
meta-codesync[bot] merged 1 commit into
react:mainfrom
rubennorte:export-D134283446
Nov 26, 2026
Merged

meta-codesync[bot] merged 1 commit into
react:mainfrom
rubennorte:export-D134283446

Conversation

@rubennorte

Copy link
Copy Markdown
Member

Summary:

Context

Running mode-independent tests in both development and optimized configurations adds execution time without covering different logic. Fantom already defaults tests to development mode and benchmarks to optimized mode, but the configuration examples did not explain when overriding those defaults is appropriate.

Changes

  • Document that ordinary tests should keep the default development mode unless the tested logic depends on development versus optimized mode.
  • Reserve fantom_mode * for mode-dependent behavior that needs coverage in both configurations.
  • Explain that benchmarks automatically use optimized mode and do not need an explicit mode pragma.
  • Keep the introductory configuration example in the default mode and qualify the wildcard example as testing mode-dependent behavior.

Changelog: [Internal]

Differential Revision: D134283446

Summary:
## Context

Running mode-independent tests in both development and optimized configurations adds execution time without covering different logic. Fantom already defaults tests to development mode and benchmarks to optimized mode, but the configuration examples did not explain when overriding those defaults is appropriate.

## Changes

- Document that ordinary tests should keep the default development mode unless the tested logic depends on development versus optimized mode.
- Reserve `fantom_mode *` for mode-dependent behavior that needs coverage in both configurations.
- Explain that benchmarks automatically use optimized mode and do not need an explicit mode pragma.
- Keep the introductory configuration example in the default mode and qualify the wildcard example as testing mode-dependent behavior.

Changelog: [Internal]

Differential Revision: D134283446
@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 Nov 26, 2026
@meta-codesync

meta-codesync Bot commented Nov 26, 2026

Copy link
Copy Markdown

@rubennorte has exported this pull request. If you are a Meta employee, you can view the originating Diff in D134283446.

@javache javache left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync
meta-codesync Bot merged commit 1f43abd into react:main Nov 26, 2026
58 of 60 checks passed
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @rubennorte in 1f43abd

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Nov 26, 2026
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. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants