mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 12:20:38 +01:00
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. |
||
|---|---|---|
| .. | ||
| matchers | ||
| spec-equivalence-reporter | ||
| typescript | ||
| config.base.js | ||
| config.build-devtools.js | ||
| config.build.js | ||
| config.source-persistent.js | ||
| config.source.js | ||
| dont-run-jest-directly.js | ||
| noHaste.js | ||
| preprocessor.js | ||
| setupEnvironment.js | ||
| setupHostConfigs.js | ||
| setupTests.build.js | ||
| setupTests.js | ||
| setupTests.persistent.js | ||
| shouldIgnoreConsoleError.js | ||