Refactor: Streamline memoryUtils and update slash commands (#478)

This commit is contained in:
Allen Hutchison 2025-05-22 10:57:06 -07:00 committed by GitHub
parent 0c192555bb
commit 581709df80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 101 additions and 135 deletions

View file

@ -77,13 +77,13 @@ describe('useSlashCommandProcessor', () => {
performAddMemoryEntrySpy.mockReset();
(open as Mock).mockClear();
vi.spyOn(memoryUtils, 'deleteLastMemoryEntry').mockImplementation(vi.fn());
vi.spyOn(memoryUtils, 'deleteAllAddedMemoryEntries').mockImplementation(
vi.fn(),
);
// vi.spyOn(memoryUtils, 'deleteLastMemoryEntry').mockImplementation(vi.fn());
// vi.spyOn(memoryUtils, 'deleteAllAddedMemoryEntries').mockImplementation(
// vi.fn(),
// );
vi.mocked(memoryUtils.deleteLastMemoryEntry).mockClear();
vi.mocked(memoryUtils.deleteAllAddedMemoryEntries).mockClear();
// vi.mocked(memoryUtils.deleteLastMemoryEntry).mockClear();
// vi.mocked(memoryUtils.deleteAllAddedMemoryEntries).mockClear();
mockProcessExit.mockClear();
(ShowMemoryCommandModule.createShowMemoryAction as Mock).mockClear();