Member Junction
    Preparing search index...

    Helper functions for working with Tags JSON

    Index

    Constructors

    Methods

    • Add a tag to an existing tags JSON string

      Parameters

      • tagsJson: string | null | undefined

        Existing tags JSON

      • newTag: string

        Tag to add

      Returns string

      Updated JSON string

    • Get unique tags from multiple test runs

      Parameters

      • tagsJsonArray: (string | null | undefined)[]

        Array of tags JSON strings

      Returns string[]

      Unique sorted tags

    • Parse tags from JSON string

      Parameters

      • tagsJson: string | null | undefined

        JSON string containing tags array

      Returns string[]

      Array of tag strings or TestTag objects

    • Remove a tag from an existing tags JSON string

      Parameters

      • tagsJson: string | null | undefined

        Existing tags JSON

      • tagToRemove: string

        Tag to remove

      Returns string

      Updated JSON string