Skip to content

Commit d009d8e

Browse files
authored
Merge pull request #126 from PatrickSys/agent/fix-scoped-memory-fixtures
test: keep scoped memory fixtures fresh
2 parents 58a4cc4 + 7ad2fb6 commit d009d8e

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

tests/search-health-scope.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('search_codebase health and scoped memories', () => {
2828
beforeEach(async () => {
2929
searchMocks.search.mockReset();
3030
tempRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'search-health-scope-'));
31+
const currentDate = new Date().toISOString();
3132

3233
const contextDir = path.join(tempRoot, '.codebase-context');
3334
await fs.mkdir(contextDir, { recursive: true });
@@ -56,7 +57,7 @@ describe('search_codebase health and scoped memories', () => {
5657
category: 'architecture',
5758
memory: 'Avoid direct token reads',
5859
reason: 'They bypass AuthService refresh logic.',
59-
date: '2026-04-17T00:00:00.000Z',
60+
date: currentDate,
6061
scope: {
6162
kind: 'symbol',
6263
file: 'src/auth/auth.service.ts',
@@ -69,7 +70,7 @@ describe('search_codebase health and scoped memories', () => {
6970
category: 'architecture',
7071
memory: 'Use auth interceptors',
7172
reason: 'They keep HTTP token injection consistent.',
72-
date: '2026-04-17T00:00:00.000Z'
73+
date: currentDate
7374
}
7475
],
7576
null,

tests/search-scoped-memory.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('search_codebase scoped memories', () => {
2828
beforeEach(async () => {
2929
searchMocks.search.mockReset();
3030
tempRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'search-scoped-memory-'));
31+
const currentDate = new Date().toISOString();
3132

3233
const contextDir = path.join(tempRoot, '.codebase-context');
3334
await fs.mkdir(contextDir, { recursive: true });
@@ -55,7 +56,7 @@ describe('search_codebase scoped memories', () => {
5556
category: 'architecture',
5657
memory: 'Avoid direct token reads',
5758
reason: 'They bypass AuthService refresh logic.',
58-
date: '2026-04-17T00:00:00.000Z',
59+
date: currentDate,
5960
scope: {
6061
kind: 'symbol',
6162
file: 'src/auth/auth.service.ts',
@@ -68,7 +69,7 @@ describe('search_codebase scoped memories', () => {
6869
category: 'architecture',
6970
memory: 'Use auth interceptors',
7071
reason: 'They keep HTTP token injection consistent.',
71-
date: '2026-04-17T00:00:00.000Z'
72+
date: currentDate
7273
}
7374
],
7475
null,

0 commit comments

Comments
 (0)