Skip to content

Commit 24c9dc9

Browse files
committed
fix tests
1 parent c44a2bc commit 24c9dc9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/local/commands/api-suggestions.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import { useAuthSetup } from '../../__setup__/hooks/useAuthSetup.js';
44
import { useConsoleSpy } from '../../__setup__/hooks/useConsoleSpy.js';
55
import { MOCK_OPENAPI_SPEC } from '../../__setup__/fixtures/mock-openapi-spec.js';
66

7-
const mockGetLoggedClientOrThrow = vitest.fn();
7+
const { mockGetLoggedClientOrThrow } = vitest.hoisted(() => ({
8+
mockGetLoggedClientOrThrow: vitest.fn(),
9+
}));
810

911
vitest.mock('../../../src/lib/utils.js', async (importOriginal) => {
1012
const original = await importOriginal<typeof import('../../../src/lib/utils.js')>();

0 commit comments

Comments
 (0)