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.
This commit is contained in:
Ruslan Lesiutin
2024-12-29 15:36:21 +00:00
committed by GitHub
parent e904d07d44
commit 20218ab341
@@ -110,7 +110,7 @@ async function downloadRegressionBuild() {
);
}
if (semver.gte(reactVersion, '18.2.0') && semver.lt(reactVersion, '19')) {
if (semver.gte(reactVersion, '18.2.0') && semver.lt(reactVersion, '19.0.0')) {
console.log(chalk.white(`Downloading react-compiler-runtime\n`));
await exec(
`npm install --prefix ${REGRESSION_FOLDER} react-compiler-runtime`