Connectum API Reference / @connectum/testing / index / MockDescMessageOptions
Interface: MockDescMessageOptions ​
Defined in: test-fixtures/dist/types.d.ts:37
Options for createMockDescMessage.
Properties ​
fields? ​
optionalfields?:object[]
Defined in: test-fixtures/dist/types.d.ts:47
Field definitions. Default: []
name is the field name as written in the .proto file; localName is derived from it (user_id gives userId). fieldNumber defaults to the highest number used so far plus one; a repeated number throws, and so does a number outside 1 to 536870911 or inside the reserved range 19000 to 19999. type is a MockScalarType; any other value throws.
fieldNumber? ​
optionalfieldNumber?:number
isSensitive? ​
optionalisSensitive?:boolean
Mark the field as sensitive, as in MockDescFieldOptions.isSensitive. Default: false
name ​
name:
string
type? ​
optionaltype?:MockScalarType
oneofs? ​
optionaloneofs?:string[]
Defined in: test-fixtures/dist/types.d.ts:55
Oneof group names. A mock oneof group has no fields. Default: []