You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

functions.js 498B

123456789101112131415
  1. // @flow
  2. /**
  3. * Indicates whether the test mode is enabled. When it's enabled
  4. * {@link TestHint} and other components from the testing package will be
  5. * rendered in various places across the app to help with automatic testing.
  6. *
  7. * @param {Object} state - The redux store state.
  8. * @returns {boolean}
  9. */
  10. export function isTestModeEnabled(state: Object): boolean {
  11. const testingConfig = state['features/base/config'].testing;
  12. return Boolean(testingConfig && testingConfig.testMode);
  13. }