We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d30e4a0 commit 90ebcf4Copy full SHA for 90ebcf4
packages/cli/src/__tests__/commands/lint.test.ts
@@ -7,6 +7,7 @@ import {
7
logger,
8
type Totals,
9
type NormalizedProblem,
10
+ loadConfig,
11
} from '@redocly/openapi-core';
12
import {
13
getFallbackApisOrExit,
@@ -192,9 +193,9 @@ describe('handleLint', () => {
192
193
expect(processExitMock).toHaveBeenCalledWith(1);
194
});
195
- it('should use recommended fallback if there is no config', async () => {
196
+ it('should suggest recommended fallback if there is no config', async () => {
197
vi.mocked(loadConfigAndHandleErrors).mockImplementation(async () => {
- return await createConfig();
198
+ return await loadConfig({});
199
200
await commandWrapper(handleLint)(argvMock);
201
expect(logger.info).toHaveBeenCalledWith(
0 commit comments