Function testPeggy

  • Test the basic functionality of a Peggy grammar, to make coverage easier.

    Type Parameters

    • T

    Parameters

    • grammarUrl: string | URL

      The file name for the compiled grammar.

    • starts: PeggyTestOptions<T>[]

      List of tests. Ensure you have at least one validInput and at least one invalidInput.

    • Optionalopts: TestPeggyOptions

      Options for processing.

    Returns Promise<TestCounts>