Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanrule committed Dec 31, 2024
1 parent 1dd1ba4 commit ff5b926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/setup/askForTalawaApiUrl/askForTalawaApiUrl.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import inquirer from 'inquirer';
import { askForTalawaApiUrl } from './askForTalawaApiUrl';
import { vi, it, describe, expect, beforeEach } from 'vitest';

vi.mock('inquirer', async (importOriginal) => {
const actual = await importOriginal<typeof inquirer>(); // Adding explicit type
vi.mock('inquirer', async () => {
const actual = await vi.importActual('inquirer');
return {
...actual,
prompt: vi.fn(),
Expand Down

0 comments on commit ff5b926

Please sign in to comment.