Skip to content

Commit bfb0568

Browse files
committed
fix: lint errors
Assisted-by: <Cursor> Signed-off-by: Denis Golovin <dgolovin@redhat.com>
1 parent 1ecb6c2 commit bfb0568

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/crc-cli.spec.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
import { describe, it, expect, vi, beforeEach } from 'vitest';
2020
import { spawn } from 'node:child_process';
2121
import type { ChildProcess } from 'node:child_process';
22+
import type * as ChildProcessModule from 'node:child_process';
2223
import { execPromise } from './crc-cli.js'; // TODO: Update with your actual file name
2324
import type { Logger } from '@podman-desktop/api';
2425

2526
// Mock the child_process module using a factory function
26-
vi.mock('node:child_process', async (importOriginal) => {
27-
const actual = await importOriginal<typeof import('node:child_process')>();
27+
vi.mock('node:child_process', async importOriginal => {
28+
const actual = await importOriginal<typeof ChildProcessModule>();
2829
return {
2930
...actual,
3031
spawn: vi.fn(),

0 commit comments

Comments
 (0)