react/packages/shared/__tests__
Andrew Clark bec7599067
Migrate conditional tests to gate pragma (#18585)
* Migrate conditional tests to gate pragma

I searched through the codebase for this pattern:

```js
describe('test suite', () => {
  if (!__EXPERIMENTAL__) { // or some other condition
    test("empty test so Jest doesn't complain", () => {});
    return;
  }

  // Unless we're in experimental mode, none of the tests in this block
  // will run.
})
```

and converted them to the `@gate` pragma instead.

The reason this pattern isn't preferred is because you end up disabling
more tests than you need to.

* Add flag for www release channels

Using a heuristic where I check a flag that is known to only be enabled
in www. I left a TODO to instead set the release channel explicitly in
each test config.
2020-04-13 14:45:52 -07:00
..
ReactDOMFrameScheduling-test.js Fork ReactSharedInternals for UMD builds (#15617) 2019-05-10 13:51:39 -07:00
ReactError-test.internal.js Migrate conditional tests to gate pragma (#18585) 2020-04-13 14:45:52 -07:00
ReactErrorProd-test.internal.js Pass prod error messages directly to constructor (#17063) 2019-10-11 09:10:40 -07:00
ReactErrorUtils-test.internal.js Enable prefer-const lint rules (#18451) 2020-04-01 12:35:52 -07:00
ReactSymbols-test.internal.js [react-is] add back proper AsyncMode symbol, for back compat (#13959) 2018-10-31 19:03:50 +00:00
describeComponentFrame-test.js Migrate conditional tests to gate pragma (#18585) 2020-04-13 14:45:52 -07:00