react/scripts/jest
Andrew Clark 86b0e91998
Gate DevTools test to fix CI (#26742)
This test started failing recently in older versions of React because
the Scheduler priority inside a microtask is Normal instead of
Immediate. This is expected because microtasks are not Scheduler tasks;
it's an implementation detail.

I gated the test to only run in v17 because it's a regression test for
legacy Suspense behavior, and the implementation details of the snapshot
changed in v18.

Test plan
---------

Using latest:

```
yarn test --build --project devtools --release-channel=experimental profilingcache
```

Using v17 (typically runs in a timed CI workflow):

```
/scripts/circleci/download_devtools_regression_build.js 17.0 --replaceBuild
yarn test --build --project devtools --release-channel=experimental --reactVersion 17.0 profilingcache
```
2023-04-29 11:14:16 -04:00
..
devtools Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
matchers act: Move didScheduleLegacyUpdate to ensureRootIsScheduled (#26552) 2023-04-10 14:40:18 -04:00
spec-equivalence-reporter Migrate testRunner from jasmine2 to jest-circus (#26144) 2023-02-10 13:39:14 -05:00
typescript Migrate testRunner from jasmine2 to jest-circus (#26144) 2023-02-10 13:39:14 -05:00
ReactDOMServerIntegrationEnvironment.js Use require() to implement script src in tests (#26717) 2023-04-25 09:12:16 -04:00
TestFlags.js Remove Reconciler fork (1/2) (#25774) 2022-12-01 23:06:25 -05:00
config.base.js Migrate testRunner from jasmine2 to jest-circus (#26144) 2023-02-10 13:39:14 -05:00
config.build-devtools.js Codemod tests to waitFor pattern (2/?) (#26296) 2023-03-03 17:01:57 -05:00
config.build.js New internal testing helpers: waitFor, waitForAll, waitForPaint (#26285) 2023-03-02 21:58:11 -05: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 Gate DevTools test to fix CI (#26742) 2023-04-29 11:14:16 -04:00
jest.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -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 Update to Jest 29 (#26088) 2023-02-09 17:07:49 +01:00
setupEnvironment.js Update to Jest 29 (#26088) 2023-02-09 17:07:49 +01:00
setupGlobal.js Use toMatchInlineSnapshot for dehydrated values (#20618) 2021-04-26 12:30:34 -04:00
setupHostConfigs.js Use .slice() for all substring-ing (#26677) 2023-04-19 14:26:01 -07:00
setupTests.build.js Update jest to v26 (#21574) 2021-05-27 16:33:57 +01:00
setupTests.js Use .slice() for all substring-ing (#26677) 2023-04-19 14:26:01 -07:00
setupTests.persistent.js Update jest to v26 (#21574) 2021-05-27 16:33:57 +01:00
setupTests.www.js Remote `.internal` override from untrusted URL tests (#26372) 2023-03-11 15:46:16 -05:00
shouldIgnoreConsoleError.js Update to Jest 29 (#26088) 2023-02-09 17:07:49 +01:00