Skip to main content
Version: Next

mockApis.config

Home > @backstage/test-utils > mockApis > config

Mock helpers for ConfigApi.

Signature:

namespace config 

Functions

Function

Description

factory(options)

Creates a factory for a fake implementation of ConfigApi with optional configuration data supplied.

mock(partialImpl)

Creates a mock implementation of ConfigApi. All methods are replaced with jest mock functions, and you can optionally pass in a subset of methods with an explicit implementation.