Skip to content

Set displayName for Fantom configuration - #52778

Closed
rubennorte wants to merge 4 commits into
react:mainfrom
rubennorte:export-D78802516
Closed

Set displayName for Fantom configuration#52778
rubennorte wants to merge 4 commits into
react:mainfrom
rubennorte:export-D78802516

Conversation

@rubennorte

Copy link
Copy Markdown
Member

Summary:
Changelog: [internal]

Jest has an option to select a specific project when running tests:

jest --selectProjects fantom

But for this to work, a displayName option needs to be set in the project configuration. This adds that for Fantom tests (using fantom).

Differential Revision: D78802516

Summary:

Changelog: [internal]

Reported locations for errors in Fantom is wrong, because it seems it's not ignoring "infra" frames.

This was caused by the `stack` property in `ErrorWithCustomBlame` being set on the error objects and shadowing the getter that removes the necessary frames. This fixes that by forcing that property to be deleted.

Reviewed By: christophpurrer

Differential Revision: D78747119
…ode (#52759)

Summary:

Changelog: [internal]

This introduces a new environment variable for Fantom to disable benchmarks (`FANTOM_FORCE_TEST_MODE`), without having to run in CI mode.

Reviewed By: rshest

Differential Revision: D78672864
Summary:

Changelog: [internal]

`FANTOM_FORCE_CI_MODE` is just an explicit way to indicate that we're on CI, so we'd run benchmarks in test mode, for example.

`FANTOM_DEBUG_CPP` is just an alias for `FANTOM_ENABLE_CPP_DEBUGGING` which is unnecessarily long.

Differential Revision: D78801918
Summary:
Changelog: [internal]

Jest has an option to select a specific project when running tests:

```
jest --selectProjects fantom
```

But for this to work, a `displayName` option needs to be set in the project configuration. This adds that for Fantom tests (using `fantom`).

Differential Revision: D78802516
@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 Jul 23, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in fec6a0a.

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