Skip to content

Commit 1410a77

Browse files
committed
test(search): extend decision-card integration timeouts
1 parent cdc0edd commit 1410a77

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/search-decision-card.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export class ProfileService {
207207
}
208208
expect(preflight.ready).toBeDefined();
209209
expect(typeof preflight.ready).toBe('boolean');
210-
});
210+
}, 30000);
211211

212212
it('decision card has all expected fields when returned', async () => {
213213
if (!tempRoot) throw new Error('tempRoot not initialized');
@@ -259,7 +259,7 @@ export class ProfileService {
259259
if (preflight.whatWouldHelp) {
260260
expect(Array.isArray(preflight.whatWouldHelp)).toBe(true);
261261
}
262-
});
262+
}, 30000);
263263

264264
it('intent="explore" returns lightweight preflight', async () => {
265265
if (!tempRoot) throw new Error('tempRoot not initialized');
@@ -290,7 +290,7 @@ export class ProfileService {
290290
expect(typeof preflight.ready).toBe('boolean');
291291
// Should NOT have full decision card fields for explore
292292
}
293-
});
293+
}, 30000);
294294

295295
it('includes snippet field when includeSnippets=true', async () => {
296296
if (!tempRoot) throw new Error('tempRoot not initialized');
@@ -321,7 +321,7 @@ export class ProfileService {
321321
// At least some results should have a snippet
322322
const withSnippets = parsed.results.filter((result) => result.snippet);
323323
expect(withSnippets.length).toBeGreaterThan(0);
324-
});
324+
}, 30000);
325325

326326
it('does not include snippet field when includeSnippets=false', async () => {
327327
if (!tempRoot) throw new Error('tempRoot not initialized');
@@ -350,7 +350,7 @@ export class ProfileService {
350350
parsed.results.forEach((result) => {
351351
expect(result.snippet).toBeUndefined();
352352
});
353-
});
353+
}, 30000);
354354

355355
it('scope header starts snippet when includeSnippets=true', async () => {
356356
if (!tempRoot) throw new Error('tempRoot not initialized');
@@ -381,5 +381,5 @@ export class ProfileService {
381381
const firstLine = withSnippet.snippet.split('\n')[0].trim();
382382
expect(firstLine).toMatch(/^\/\//);
383383
}
384-
});
384+
}, 30000);
385385
});

0 commit comments

Comments
 (0)