# All files / transition config.ts

100% Statements 34/34
100% Branches 2/2
100% Functions 2/2
100% Lines 34/34

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    351x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    742x
    742x
    1x
    113x
    113x
    1x
     /**
     * @remarks \@since 6.0.0
     */
    export interface TransitionConfig {
      /**
       * Set this to `true` to disable all transitions from `react-md`.
       *
       * Note: It is recommended to set this to `true` in testing to keep things
       * simple and will automatically be set when using:
       *
       * ```ts
       * import "@react-md/core/test-utils/jest-setup.js";
       * ```
       *
       * @defaultValue `false`
       */
      disabled: boolean;
    }

    // NOTE: Uses get/set for test mocking

    let disabled = false;

    /**
     * @remarks \@since 6.0.0
     */
    export const TRANSITION_CONFIG: TransitionConfig = {
      get disabled() {
        return disabled;
      },
      set disabled(nextDisabled: boolean) {
        disabled = nextDisabled;
      },
    };