Skip to main content
Version: Next

mockApis.config.mock()

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

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.

Signature:

mock: (partialImpl?: Partial<import("@backstage/config").Config> | undefined) => ApiMock<import("@backstage/config").Config>

Parameters

Parameter

Type

Description

partialImpl

Partial<import("@backstage/config").Config> | undefined

(Optional)

**Returns:**

ApiMock<import("@backstage/config").Config>