pentf
    Preparing search index...

    Function makeRandomEmail

    • Generate a random email address.

      Parameters

      • config: { _testName?: string; email: string }

        The pentf configuration object. config.email needs to be set.

      • prefix: string | null

        Text to put before the random characters. If no prefix is specified, the test name is used if available.

      Returns string

      If config.email is 'foo@bar.com', something like foo+prefix129ad12@bar.com