Type References for Filter functions
This page provides detailed descriptions of the various TypeScript types used in the HyperTest CLI's filtering functions:
filterFunctionToIgnoreMockDiffs andfilterFunctionToIgnoreResponseDiffs
to help users identify and ignore known non-critical differences in mocks and responses.
MockDifferenceType
MockDifferenceTypeDefines the types of differences that can be identified between the recorded and replayed mocks:
enum MockDifferenceType {
MOCK_NOT_USED,
MOCK_NOT_FOUND,
MOCK_FORCE_MATCHED,
// Instrumentation mock diff types
INSTRUMENTATION_MOCK_INPUT_KEY_REMOVED,
INSTRUMENTATION_MOCK_INPUT_KEY_ADDED,
INSTRUMENTATION_MOCK_INPUT_VALUE_MODIFIED,
INSTRUMENTATION_MOCK_INPUT_DATA_TYPE_CHANGED,
INSTRUMENTATION_MOCK_INPUT_LIST_ORDER_CHANGED,
INSTRUMENTATION_MOCK_INPUT_LIST_ORDER_CHANGED_KEY_REMOVED,
INSTRUMENTATION_MOCK_INPUT_LIST_ORDER_CHANGED_KEY_ADDED,
INSTRUMENTATION_MOCK_INPUT_LIST_ORDER_CHANGED_VALUE_MODIFIED,
INSTRUMENTATION_MOCK_INPUT_LIST_ORDER_DATA_TYPE_CHANGED,
INSTRUMENTATION_MOCK_INPUT_LIST_ITEMS_ADDED,
INSTRUMENTATION_MOCK_INPUT_LIST_ITEMS_REMOVED,
INSTRUMENTATION_MOCK_INPUT_LIST_ITEMS_MODIFIED,
INSTRUMENTATION_MOCK_INPUT_KEY_MODIFIED,
INSTRUMENTATION_MOCK_INPUT_VALUE_REMOVED,
INSTRUMENTATION_MOCK_INPUT_VALUE_ADDED,
INSTRUMENTATION_MOCK_INPUT_DATA_TYPE_MODIFIED,
}DifferenceType
DifferenceTypeDefines the types of differences identified between the expected and actual responses:
DifferenceSection
DifferenceSectionCategorizes the type of difference detected:
RequestType
RequestTypeRepresents the type of request that is being tested:
BodyType
BodyTypeDefines the body format used in the requests, such as JSON, Multipart, or Raw:
HtGraphqlOpType
HtGraphqlOpTypeRepresents the type of GraphQL operation in a GraphQL request:
HtRawEncoding
HtRawEncodingSpecifies the encoding used for the message in a request's payload or response:
OutputStatus
OutputStatusDefines the status of the mock or response:
MockDifference
MockDifferenceDescribes the structure of the mock difference object, capturing the details of the difference between the original and replayed mocks:
ResponseDifference
ResponseDifferenceDescribes the structure of the response difference object, capturing details of the difference between the expected and actual responses:
currentMock Type
currentMock TypeThe Mock represents the original mock that was recorded during testing.
Type Definition:
requestObj Types
requestObj TypesHTTP Request Object
Describes the components of an HTTP request recorded during testing:
GraphQL Request Object
Describes the components of a GraphQL request recorded during testing:
GRPC Request Object
Describes the components of a GRPC request recorded during testing:
Kafka Request Object
Describes the components of a Kafka request recorded during testing:
AMQP Request Object
Describes the components of an AMQP request recorded during testing:
Last updated