react/scripts/babel
Ruslan Lesiutin 8ec962d825
fix[devtools/ci]: fixed incorrect condition calculation for @reactVersion annotation (#26997)
Suppose that you have this setup for devtools test:
```
// @reactVersion <= 18.1
// @reactVersion >= 17.1
```

With previous implementation, the accumulated condition will be `"<=
18.1" && ">= 17.1"`, which is just `">= 17.1"`, when evaluated. That's
why we executed some tests for old versions of react on main (and
failed).

With these changes the resulting condition will be `"<= 18.1 >= 17.1"`,
not using `&&`, because semver does not support this operator. All
currently failing tests will be skipped now as expected.

Also increased timeout value for shell server to start
2023-06-23 16:45:53 +01:00
..
__tests__ [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
getComments.js Transform updates to support Flow this annotation syntax (#25918) 2023-01-05 15:41:49 -05:00
transform-object-assign.js Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
transform-prevent-infinite-loops.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
transform-react-version-pragma.js fix[devtools/ci]: fixed incorrect condition calculation for @reactVersion annotation (#26997) 2023-06-23 16:45:53 +01:00
transform-replace-console-calls.js Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
transform-test-gate-pragma.js Use .slice() for all substring-ing (#26677) 2023-04-19 14:26:01 -07:00