react/scripts/babel
Luna Ruan 4c03bb6ed0
[DevTools] ignore tests without reactVersion pragma if REACT_VERSION specified (#24555)
In DevTools tests, if the REACT_VERSION specified, we know this is a regression test (testing older React Versions). Because a lot of tests test the DevTools front end and we don't want to run them in the regression test scenario, we decided to only run tests that have the // @reactVersion pragma defined.

Because if there are no tests specified, jest will fail, we also opt to use jest.skip to skip all the tests that we don't want to run for a specific React version istead.

This PR makes this change.
2022-05-14 00:54:50 -04:00
..
__tests__ Add comment support to `@gate` pragma (#21881) 2021-07-14 10:36:24 -07:00
transform-object-assign.js Fix file path separator compatibility in scripts/babel (#24318) 2022-04-08 19:47:31 +01:00
transform-prevent-infinite-loops.js [Scheduler] Prevent event log from growing unbounded (#16781) 2019-09-13 15:50:25 -07:00
transform-react-version-pragma.js [DevTools] ignore tests without reactVersion pragma if REACT_VERSION specified (#24555) 2022-05-14 00:54:50 -04:00
transform-replace-console-calls.js Use console directly instead of warning() modules (#17599) 2019-12-14 18:09:25 +00:00
transform-test-gate-pragma.js Add comment support to `@gate` pragma (#21881) 2021-07-14 10:36:24 -07:00