Theia API Documentation v1.65.0
    Preparing search index...

    Collection of test items, found in TestItem.children and TestController.items.

    interface TestItemCollection {
        size: number;
        "[iterator]"(): Iterator<[id: string, testItem: TestItem]>;
        add(item: TestItem): void;
        delete(itemId: string): void;
        forEach(
            callback: (item: TestItem, collection: TestItemCollection) => unknown,
            thisArg?: any,
        ): void;
        get(itemId: string): undefined | TestItem;
        replace(items: readonly TestItem[]): void;
    }

    Hierarchy

    • Iterable<[id: string, testItem: TestItem]>
      • TestItemCollection

    Implemented by

    Index

    Properties

    size: number

    Gets the number of items in the collection.

    Methods

    • Returns Iterator<[id: string, testItem: TestItem]>

    • Efficiently gets a test item by ID, if it exists, in the children.

      Parameters

      • itemId: string

        Item ID to get.

      Returns undefined | TestItem

      The found item or undefined if it does not exist.