Function writeTestSpec

  • Generate a test specification file in YAML format. This function takes a test specification object, cleans it by removing undefined and empty string values, converts it to YAML format, and writes it to the specified output file.

    Parameters

    • spec: TestSpec

      The test specification object to be converted to YAML.

    • outputFile: string

      The file path where the YAML output should be written.

    Returns Promise<void>

    A Promise that resolves when the file has been written.

    • May throw an error if file operations fail.