Connectum API Reference / @connectum/testing / index / MockDescMethodOptions
Interface: MockDescMethodOptions ​
Defined in: test-fixtures/dist/types.d.ts:75
Options for createMockDescMethod.
Properties ​
input? ​
optionalinput?:DescMessage
Defined in: test-fixtures/dist/types.d.ts:77
Input message descriptor.
kind? ​
optionalkind?:"client_streaming"|"server_streaming"|"bidi_streaming"|"unary"
Defined in: test-fixtures/dist/types.d.ts:81
Method kind. Default: 'unary'
output? ​
optionaloutput?:DescMessage
Defined in: test-fixtures/dist/types.d.ts:79
Output message descriptor.
useSensitiveRedaction? ​
optionaluseSensitiveRedaction?: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.