Minimal structural shape this kit requires from a "mock function
factory". Vitest's vi, Jest's jest, or any compatible object
satisfies this — only a .fn(...) method is required.
Example
import { vi } from'vitest'; import { createVSCodeMock } from'@kkdev92/vscode-ext-kit/testing';
vi.mock('vscode', () =>createVSCodeMock(vi));
Example
// Jest works identically — no code in this package ever imports vitest. import { createVSCodeMock } from'@kkdev92/vscode-ext-kit/testing';
Minimal structural shape this kit requires from a "mock function factory". Vitest's
vi, Jest'sjest, or any compatible object satisfies this — only a.fn(...)method is required.Example
Example