Skip to main content

types_src.yamlconfig.mockingconfig

Interface: MockingConfig#

types/src.YamlConfig.MockingConfig

Mock configuration for your source

Table of contents#

Properties#

Properties#

if#

Optional if: boolean

If this expression is truthy, mocking would be enabled You can use environment variables expression, for example: ${MOCKING_ENABLED}

Defined in: packages/types/src/config.ts:1024


mocks#

Optional mocks: MockingFieldConfig[]

Mock configurations

Defined in: packages/types/src/config.ts:1033


preserveResolvers#

Optional preserveResolvers: boolean

Do not mock any other resolvers other than defined in mocks. For example, you can enable this if you don't want to mock entire schema but partially.

Defined in: packages/types/src/config.ts:1029