constructor({ api, client }) {
    super({ api });

    this._pendingDeletions = [];
    this._artifacts = {
      perTest: {},
      perSession: {},
    };

    client.setEventCallback('testFailed', this._onInvokeFailure.bind(this));
  }
@param {ArtifactsApi} api
@param {Client} client