We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95c84ae commit 19be0d2Copy full SHA for 19be0d2
src/utils/__tests__/autoImportConfig.spec.ts
@@ -38,11 +38,9 @@ vi.mock("../fs", () => ({
38
vi.mock("../../core/config/ProviderSettingsManager", async (importOriginal) => {
39
const originalModule = await importOriginal()
40
return {
41
- // @ts-expect-error - we are overriding the type with a partial mock
42
__esModule: true,
43
// We need to mock the class constructor and its methods,
44
// but keep other exports (like schemas) as their original values.
45
46
...(originalModule || {}), // Spread original exports
47
ProviderSettingsManager: vi.fn().mockImplementation(() => ({
48
// Mock the class
0 commit comments