react/packages/react-noop-renderer/src
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
..
ReactNoop.js Bugfix: Dropped effects in Legacy Mode Suspense (#18238) 2020-03-06 11:10:01 -08:00
ReactNoopFlightClient.js [Flight] Lazily parse models and allow any value to suspend (#18476) 2020-04-03 14:58:02 -07:00
ReactNoopFlightServer.js Enable prefer-const lint rules (#18451) 2020-04-01 12:35:52 -07:00
ReactNoopPersistent.js Migrate conditional tests to gate pragma (#18585) 2020-04-13 14:45:52 -07:00
ReactNoopServer.js Enable prefer-const lint rules (#18451) 2020-04-01 12:35:52 -07:00
createReactNoop.js Split cross-package types from implementation 2020-04-08 23:49:23 -07:00