BUPKIS
    Preparing search index...

    Function isExpectItExecutor

    • Type guard for ExpectItExecutor functions.

      This function checks if a value is an ExpectItExecutor function created by expect.it(). ExpectItExecutor functions are special functions that contain assertion logic and are marked with an internal symbol for identification. They are used in nested assertions within "to satisfy" patterns and other complex assertion scenarios.

      Type Parameters

      Parameters

      • value: unknown

        Value to test

      Returns value is ExpectItExecutor<Subject>

      true if the value is an ExpectItExecutor function, false otherwise

      const executor = expect.it('to be a string');
      if (isExpectItExecutor(executor)) {
      // executor is now typed as ExpectItExecutor
      // Can be used in satisfaction patterns
      }