We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c44a2bc commit 24c9dc9Copy full SHA for 24c9dc9
1 file changed
test/local/commands/api-suggestions.test.ts
@@ -4,7 +4,9 @@ import { useAuthSetup } from '../../__setup__/hooks/useAuthSetup.js';
4
import { useConsoleSpy } from '../../__setup__/hooks/useConsoleSpy.js';
5
import { MOCK_OPENAPI_SPEC } from '../../__setup__/fixtures/mock-openapi-spec.js';
6
7
-const mockGetLoggedClientOrThrow = vitest.fn();
+const { mockGetLoggedClientOrThrow } = vitest.hoisted(() => ({
8
+ mockGetLoggedClientOrThrow: vitest.fn(),
9
+}));
10
11
vitest.mock('../../../src/lib/utils.js', async (importOriginal) => {
12
const original = await importOriginal<typeof import('../../../src/lib/utils.js')>();
0 commit comments