22 lines
912 B
TypeScript
22 lines
912 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('Astra stance');
|
|
expect(prompt).toContain('not a template renderer');
|
|
expect(prompt).toContain('calm but opinionated');
|
|
expect(prompt).toContain('If the answer starts sounding like a checklist');
|
|
});
|
|
});
|