Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
// @vitest-environment jsdom
import { cleanup, render, screen } from '@testing-library/react'
import { afterEach, expect, it, vi } from 'vitest'
import { SnapshotDiffViewer } from './snapshot-diff-viewer'
vi.mock('react-i18next', () => ({
useTranslation: () => ({ t: (key: string) => key }),
}))
afterEach(cleanup)
it('marks the missing version while retaining the added file diff', () => {
render(
<SnapshotDiffViewer
diff={'--- old\n+++ new\n@@ -0,0 +1 @@\n+new content\n'}
missingBase
/>,
)
expect(screen.getByText('versionMissingFile')).toBeTruthy()
expect(screen.getByText('new content')).toBeTruthy()
expect(screen.getByText('+1')).toBeTruthy()
})