diff --git a/ci/run_conditional_tests.sh b/ci/run_conditional_tests.sh index 5e10d220da6..cb6ae744a08 100755 --- a/ci/run_conditional_tests.sh +++ b/ci/run_conditional_tests.sh @@ -31,6 +31,11 @@ fi test_script="${PROJECT_ROOT}/ci/run_single_test.sh" +if [[ "$(node -v)" == v22* ]]; then + export NODE_OPTIONS="${NODE_OPTIONS} --no-warnings=DEP0040" + export NODE_OPTIONS="${NODE_OPTIONS} --no-experimental-require-module" +fi + if [ ${BUILD_TYPE} == "presubmit" ]; then # For presubmit build, we want to know the difference from the # common commit in origin/main. diff --git a/ci/run_single_test.sh b/ci/run_single_test.sh index 13b2d43d178..662a1184f34 100755 --- a/ci/run_single_test.sh +++ b/ci/run_single_test.sh @@ -18,7 +18,7 @@ set -e export REGION_ID='uc' export PROJECT_ROOT=$(realpath $(dirname "${BASH_SOURCE[0]}")/..) -export NODE_OPTIONS=--max_old_space_size=6144 +export NODE_OPTIONS="${NODE_OPTIONS} --max_old_space_size=6144 --no-deprecation" if [ -z "${BUILD_TYPE}" ]; then echo "missing BUILD_TYPE env var"