Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/search-health-scope.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('search_codebase health and scoped memories', () => {
beforeEach(async () => {
searchMocks.search.mockReset();
tempRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'search-health-scope-'));
const currentDate = new Date().toISOString();

const contextDir = path.join(tempRoot, '.codebase-context');
await fs.mkdir(contextDir, { recursive: true });
Expand Down Expand Up @@ -56,7 +57,7 @@ describe('search_codebase health and scoped memories', () => {
category: 'architecture',
memory: 'Avoid direct token reads',
reason: 'They bypass AuthService refresh logic.',
date: '2026-04-17T00:00:00.000Z',
date: currentDate,
scope: {
kind: 'symbol',
file: 'src/auth/auth.service.ts',
Expand All @@ -69,7 +70,7 @@ describe('search_codebase health and scoped memories', () => {
category: 'architecture',
memory: 'Use auth interceptors',
reason: 'They keep HTTP token injection consistent.',
date: '2026-04-17T00:00:00.000Z'
date: currentDate
}
],
null,
Expand Down
5 changes: 3 additions & 2 deletions tests/search-scoped-memory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('search_codebase scoped memories', () => {
beforeEach(async () => {
searchMocks.search.mockReset();
tempRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'search-scoped-memory-'));
const currentDate = new Date().toISOString();

const contextDir = path.join(tempRoot, '.codebase-context');
await fs.mkdir(contextDir, { recursive: true });
Expand Down Expand Up @@ -55,7 +56,7 @@ describe('search_codebase scoped memories', () => {
category: 'architecture',
memory: 'Avoid direct token reads',
reason: 'They bypass AuthService refresh logic.',
date: '2026-04-17T00:00:00.000Z',
date: currentDate,
scope: {
kind: 'symbol',
file: 'src/auth/auth.service.ts',
Expand All @@ -68,7 +69,7 @@ describe('search_codebase scoped memories', () => {
category: 'architecture',
memory: 'Use auth interceptors',
reason: 'They keep HTTP token injection consistent.',
date: '2026-04-17T00:00:00.000Z'
date: currentDate
}
],
null,
Expand Down
Loading