react/scripts/jest
Andrew Clark 349cf5acc3
Experimental test helper: it.experimental (#17149)
Special version of Jest's `it` for experimental tests. Tests marked as
experimental will run **both** stable and experimental modes. In
experimental mode, they work the same as the normal Jest methods. In
stable mode, they are **expected to fail**. This means we can detect
when a test previously marked as experimental can be un-marked when the
feature becomes stable. It also reduces the chances that we accidentally
add experimental APIs to the stable builds before we intend.

I added corresponding methods for the focus and skip APIs:

- `fit` -> `fit.experimental`
- `it.only` -> `it.only.experimental` or `it.experimental.only`
- `xit` -> `xit.experimental`
- `it.skip` -> `it.skip.experimental` or `it.experimental.skip`

Since `it` is an alias of `test`, `test.experimental` works, too.
2019-10-19 16:08:08 -07:00
..
matchers Warning system refactoring (part 1) (#16799) 2019-09-24 13:45:38 +01:00
spec-equivalence-reporter Interaction tracing works across hidden and SSR hydration boundaries (#15872) 2019-06-14 18:08:23 -07:00
typescript Enforce presence or absence of component stack in tests (#13215) 2018-07-16 20:20:18 +01:00
config.base.js chore: upgrade to jest 24 (#15778) 2019-10-03 22:44:18 +05:30
config.build-devtools.js chore: upgrade to jest 24 (#15778) 2019-10-03 22:44:18 +05:30
config.build.js Disabled DevTools tests from yarn-build target 2019-08-27 09:08:49 -07:00
config.source-persistent.js Configured CI to run DevTools tests. Updated other test configs not to include DevTools tests. 2019-08-26 09:58:28 -07:00
config.source.js Configured CI to run DevTools tests. Updated other test configs not to include DevTools tests. 2019-08-26 09:58:28 -07:00
dont-run-jest-directly.js Add error when running jest directly (#12726) 2018-05-01 12:46:17 -07:00
noHaste.js Forbid Haste in Jest (#11647) 2017-11-23 18:02:47 +00:00
preprocessor.js chore: upgrade to jest 24 (#15778) 2019-10-03 22:44:18 +05:30
setupEnvironment.js Remove concurrent apis from stable (#17088) 2019-10-15 15:09:19 -07:00
setupHostConfigs.js Add new mock build of Scheduler with flush, yield API (#14964) 2019-02-26 20:51:17 -08:00
setupTests.build.js Add new mock build of Scheduler with flush, yield API (#14964) 2019-02-26 20:51:17 -08:00
setupTests.js Experimental test helper: it.experimental (#17149) 2019-10-19 16:08:08 -07:00
setupTests.persistent.js Run persistent mode tests in CI (#15029) 2019-03-11 10:56:34 -07:00
shouldIgnoreConsoleError.js warn if you try to use act() in prod (#16282) 2019-08-05 13:01:05 -07:00