Function testEach

  • This function can be used to run a jest test block for mutliple configurations It can be used to run tests for different permissions if the same results are expected

    Type Parameters

    • T = string

      The object type of data

    Parameters

    • data: T[]

      The data array that should be used to generate the tests

    • labels: string[]

      Additional label information for each run

    • testConfig: ((data, label?) => void)

      This method contains the test cases

        • (data, label?): void
        • Parameters

          • data: T
          • Optional label: string

          Returns void

    Returns void

Generated using TypeDoc