Skip to content

Commit 4ff4836

Browse files
rubennortemeta-codesync[bot]
authored andcommitted
Automatically set --runInBand when running benchmarks
Summary: When `--benchmarks` is passed to `yarn fantom`, automatically append `--runInBand` to the Jest arguments. This ensures benchmarks run sequentially in the same process, avoiding parallel test execution that would introduce noise in performance measurements. Changelog: [Internal] Reviewed By: lenaic Differential Revision: D100796022 fbshipit-source-id: b78aa44d65ef8618eec6fb08680b5b455cf2470b
1 parent c482b93 commit 4ff4836

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/fantom.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ for arg in "$@"; do
2727
esac
2828
done
2929

30+
if [[ -n "$FANTOM_RUN_BENCHMARKS" ]]; then
31+
ARGS+=("--runInBand")
32+
fi
33+
3034
yarn jest --config private/react-native-fantom/config/jest.config.js "${ARGS[@]}"

0 commit comments

Comments
 (0)