Skip to content

Connectum API Reference / @connectum/testing / index / MockDescMethodOptions

Interface: MockDescMethodOptions ​

Defined in: test-fixtures/dist/types.d.ts:75

Options for createMockDescMethod.

Properties ​

input? ​

optional input?: DescMessage

Defined in: test-fixtures/dist/types.d.ts:77

Input message descriptor.


kind? ​

optional kind?: "client_streaming" | "server_streaming" | "bidi_streaming" | "unary"

Defined in: test-fixtures/dist/types.d.ts:81

Method kind. Default: 'unary'


output? ​

optional output?: DescMessage

Defined in: test-fixtures/dist/types.d.ts:79

Output message descriptor.


useSensitiveRedaction? ​

optional useSensitiveRedaction?: boolean

Defined in: test-fixtures/dist/types.d.ts:90

Put the fixture-only marker { debug_redact: true } into proto.options. Default: false

Deprecated ​

google.protobuf.MethodOptions has no debug_redact field: the marker exists only in this fixture, nothing in Connectum reads it, and it does not conform to a compiled descriptor. It keeps its behaviour for existing tests. Mark a field with isSensitive instead.