mirror of
https://github.com/react/react-native.git
synced 2026-09-30 17:29:41 +08:00
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
This commit is contained in:
committed by
meta-codesync[bot]
parent
c482b936b2
commit
4ff4836a0f
@@ -27,4 +27,8 @@ for arg in "$@"; do
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ -n "$FANTOM_RUN_BENCHMARKS" ]]; then
|
||||
ARGS+=("--runInBand")
|
||||
fi
|
||||
|
||||
yarn jest --config private/react-native-fantom/config/jest.config.js "${ARGS[@]}"
|
||||
|
||||
Reference in New Issue
Block a user