Files
connectai/tests/systemPrompt.test.ts
T

22 lines
932 B
TypeScript

import { getSystemPrompt } from '../src/utils';
describe('base system prompt', () => {
it('requires local project paths to be inspected before upload requests', () => {
const prompt = getSystemPrompt();
expect(prompt).toContain('Local Path Handling Rule');
expect(prompt).toContain('inspect the path before asking for uploads');
expect(prompt).toContain('Do not say "upload the source code"');
expect(prompt).toContain('For code review requests, first confirm path access');
});
it('gives Astra a stance instead of only response structure', () => {
const prompt = getSystemPrompt();
expect(prompt).toContain('[PROFESSIONAL STANCE & THINKING]');
expect(prompt).toContain('local operating partner');
expect(prompt).toContain('engineering judgment');
expect(prompt).toContain('If the answer starts sounding like a checklist');
});
});