diff --git a/packages/cli/src/__tests__/commands/push-region.test.ts b/packages/cli/src/__tests__/commands/push-region.test.ts index b47db2670d..d11a823abc 100644 --- a/packages/cli/src/__tests__/commands/push-region.test.ts +++ b/packages/cli/src/__tests__/commands/push-region.test.ts @@ -22,13 +22,7 @@ jest.mock('fs', () => ({ // Mock OpenAPI core jest.mock('@redocly/openapi-core', () => ({ ...jest.requireActual('@redocly/openapi-core'), - getMergedConfig: jest.fn().mockReturnValue({ - styleguide: { - skipDecorators: jest.fn(), - extendPaths: [], - pluginPaths: [], - }, - }), + getMergedConfig: jest.fn().mockImplementation((config) => config), bundle: jest.fn().mockResolvedValue({ bundle: { parsed: {} }, problems: {