dillon1000/react

Commit

[DevTools] Add Pragma to Only Run Tests if Version Requirement Satisfied (#24533)

This PR:

Adds a transform-react-version-pragma that transforms // @reactVersion SEMVER_VERSION into _test_react_version(...) and _test_react_version_focus(...) that lets us only run a test if it satisfies the right react version.
Adds _test_react_version and _test_react_version_focus to the devtools setupEnv file
Add a devtools preprocessor file for devtools specific plugins
Browse files
Changed paths5 files
First-parent comparison
M packages/react-devtools-shared/src/__tests__/setupEnv.js ModifiedA packages/react-devtools-shared/src/__tests__/transform-react-version-pragma-test.js AddedA scripts/babel/transform-react-version-pragma.js AddedA scripts/jest/devtools/preprocessor.js AddedM scripts/jest/preprocessor.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…