types_src.yamlconfig.mockingfieldconfig

Interface: MockingFieldConfig#

types/src.YamlConfig.MockingFieldConfig

Hierarchy#

  • MockingFieldConfig

Table of contents#

Properties#

Properties#

apply#

apply: string

Resolver path Example: User.firstName

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


custom#

Optional custom: string

Custom mocking It can be a module or json file. Both "moduleName#exportName" or only "moduleName" would work

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


faker#

Optional faker: string

Faker.js expression or function Read more (https://github.com/marak/Faker.js/#fakerfake) Example; faker: name.firstName faker: "{{ name.firstName }} {{ name.lastName }}"

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


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