react/scripts/jest
Luna Ruan 7d9e17a982
[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
2022-05-11 12:01:05 -04:00
..
devtools [DevTools] Add Pragma to Only Run Tests if Version Requirement Satisfied (#24533) 2022-05-11 12:01:05 -04:00
matchers Refactored how React/DevTools log Timeline performance data (#23102) 2022-01-13 14:55:54 -05:00
spec-equivalence-reporter Update test and stack frame code to support newer V8 stack formats (#22477) 2021-10-11 18:40:42 -04:00
typescript Move createRoot/hydrateRoot to react-dom/client (#23385) 2022-03-01 00:13:28 -05:00
TestFlags.js Move SuspenseList to experimental channel (#22765) 2021-11-15 10:12:56 -08:00
config.base.js Update jest to v26 (#21574) 2021-05-27 16:33:57 +01:00
config.build-devtools.js DevTools: Timeline profiler refactor 2022-01-28 13:09:28 -05:00
config.build.js Upgrade useSyncExternalStore to alpha channel (#22662) 2021-10-31 15:38:03 -07:00
config.source-persistent.js DevTools: Show hook names based on variable usage (#21641) 2021-07-01 14:39:18 -04:00
config.source-www.js DevTools: Show hook names based on variable usage (#21641) 2021-07-01 14:39:18 -04:00
config.source.js DevTools: Show hook names based on variable usage (#21641) 2021-07-01 14:39:18 -04:00
dont-run-jest-directly.js Add error when running jest directly (#12726) 2018-05-01 12:46:17 -07:00
jest-cli.js Console message fixed for devtools (#23067) 2022-01-05 11:45:45 -05:00
jest.js Add new test cli (#19184) 2020-06-25 20:39:50 -04:00
jestSequencer.js Parallelize Jest in CI (#19552) 2020-08-07 16:32:59 -04:00
noHaste.js Forbid Haste in Jest (#11647) 2017-11-23 18:02:47 +00:00
preprocessor.js [DevTools] Add Pragma to Only Run Tests if Version Requirement Satisfied (#24533) 2022-05-11 12:01:05 -04:00
setupEnvironment.js Add fallback shim for AbortController (#24285) 2022-04-08 15:53:40 -04:00
setupGlobal.js Use toMatchInlineSnapshot for dehydrated values (#20618) 2021-04-26 12:30:34 -04:00
setupHostConfigs.js Resolve the true entry point during tests (#21505) 2021-06-02 18:03:29 -07:00
setupTests.build.js Update jest to v26 (#21574) 2021-05-27 16:33:57 +01:00
setupTests.js Update test and stack frame code to support newer V8 stack formats (#22477) 2021-10-11 18:40:42 -04:00
setupTests.persistent.js Update jest to v26 (#21574) 2021-05-27 16:33:57 +01:00
setupTests.www.js Fork ReactSymbols (#24484) 2022-05-03 17:12:23 -04:00
shouldIgnoreConsoleError.js Throw when `act` is used in production (#21686) 2021-06-16 16:29:51 -04:00