types_src.yamlconfig.mockingconfig

Interface: MockingConfig#

types/src.YamlConfig.MockingConfig

Mock configuration for your source

Hierarchy#

  • MockingConfig

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:944


mocks#

Optional mocks: MockingFieldConfig[]

Mock configurations

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


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:949