Docs
API
Interfaces
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:1359


initializeStore

Optional initializeStore: any

The path to the code runs before the store is attached to the schema

Defined in

packages/types/src/config.ts:1372


mocks

Optional mocks: MockingFieldConfig[]

Mock configurations

Defined in

packages/types/src/config.ts:1368


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