/
githubmirror
/
react-native
Обзор
Документация
Войти
/
githubmirror
/
react-native
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v0.85.0-rc.5
scripts/fantom.sh
35 строк
959 B
Samuel Susla
Exclude benchmark tests by default, add --benchmarks flag (#55725)
25 фев 2026, 14:17
25 фев 2026, 14:17
677330a
Код
Авторство
О чём код?
#!/bin/bash # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. set -e if [[ -f "BUCK" && -z "$FANTOM_FORCE_OSS_BUILD" ]]; then export JS_DIR='..' else yarn workspace @react-native/fantom build export FANTOM_FORCE_OSS_BUILD=1 fi export NODE_OPTIONS='--max-old-space-size=8192' # Parse arguments to check for --benchmarks flag INCLUDE_BENCHMARKS=false ARGS=() for arg in "$@"; do if [[ "$arg" == "--benchmarks" ]]; then INCLUDE_BENCHMARKS=true else ARGS+=("$arg") fi done # When --benchmarks is passed, set env var so jest.config.js includes benchmark tests if [[ "$INCLUDE_BENCHMARKS" == true ]]; then FANTOM_INCLUDE_BENCHMARKS=1 yarn jest --config private/react-native-fantom/config/jest.config.js "${ARGS[@]}" else yarn jest --config private/react-native-fantom/config/jest.config.js "${ARGS[@]}" fi