feat: add eval:inventory CLI command and reporting logic (#28009)

This commit is contained in:
Vedant Mahajan
2026-06-19 23:31:01 +05:30
committed by GitHub
parent 6613e129de
commit c22137ea0a
5 changed files with 412 additions and 4 deletions
+7 -4
View File
@@ -6,7 +6,10 @@
import { vi } from 'vitest';
vi.mock('fs', () => ({
...vi.importActual('fs'),
appendFileSync: vi.fn(),
}));
vi.mock('fs', async () => {
const actual = await vi.importActual<typeof import('fs')>('fs');
return {
...actual,
appendFileSync: vi.fn(),
};
});