@samitouri / QOS-React-1 / commits / c01b8058e6

DevTools: fix Compiler inegration test with 18.2 (#31904)

Currently failing with `TypeError: Invalid Version: 19`, looks like I've overlooked this one in https://github.com/facebook/react/pull/31241.

Ruslan Lesiutin committed Dec 29, 2024 at 15:36 UTC c01b8058e6e2d50a5c1ed69f1bdd4c541bf4aa92
1 file changed +1 -1
scripts/ci/download_devtools_regression_build.js
+1 -1
@@ -110,7 +110,7 @@ async function downloadRegressionBuild() {
110 );
111 }
112
113 - if (semver.gte(reactVersion, '18.2.0') && semver.lt(reactVersion, '19')) {
113 + if (semver.gte(reactVersion, '18.2.0') && semver.lt(reactVersion, '19.0.0')) {
114 console.log(chalk.white(`Downloading react-compiler-runtime\n`));
115 await exec(
116 `npm install --prefix ${REGRESSION_FOLDER} react-compiler-runtime`