Backstage
    Preparing search index...

    MockConfigApi is a thin wrapper around @backstage/config#ConfigReader that can be used to mock configuration using a plain object.

    Use mockApis.(config:namespace) instead

    const mockConfig = new MockConfigApi({
    app: { baseUrl: 'https://example.com' },
    });

    const rendered = await renderInTestApp(
    <TestApiProvider apis={[[configApiRef, mockConfig]]}>
    <MyTestedComponent />
    </TestApiProvider>,
    );

    Implements

    Index

    Constructors

    Methods