@@ -1559,6 +1559,8 @@ describe('Workflow Prompts', () => {
15591559 } ) ;
15601560 const text = result . messages [ 0 ] . content . text ;
15611561 expect ( text ) . toContain ( 'does not exist' ) ;
1562+ // Verify the warning contains the resolved absolute path
1563+ expect ( text ) . toContain ( 'nonexistent/query.ql' ) ;
15621564 } ) ;
15631565
15641566 it ( 'document_codeql_query handler should include warning for nonexistent queryPath' , async ( ) => {
@@ -1569,6 +1571,7 @@ describe('Workflow Prompts', () => {
15691571 } ) ;
15701572 const text = result . messages [ 0 ] . content . text ;
15711573 expect ( text ) . toContain ( 'does not exist' ) ;
1574+ expect ( text ) . toContain ( 'nonexistent/nowhere/query.ql' ) ;
15721575 } ) ;
15731576
15741577 it ( 'workshop_creation_workflow handler should include warning for nonexistent queryPath' , async ( ) => {
@@ -1579,8 +1582,11 @@ describe('Workflow Prompts', () => {
15791582 } ) ;
15801583 const text = result . messages [ 0 ] . content . text ;
15811584 expect ( text ) . toContain ( 'does not exist' ) ;
1585+ expect ( text ) . toContain ( 'missing/Workshop.ql' ) ;
15821586 } ) ;
15831587
1588+ // Only the `database` parameter is a file path — sourceFiles, sourceFunction,
1589+ // and targetFunction are plain string identifiers (not paths on disk).
15841590 it ( 'tools_query_workflow handler should include warning for nonexistent database path' , async ( ) => {
15851591 const handler = getRegisteredHandler ( mockServer , 'tools_query_workflow' ) ;
15861592 const result : PromptResult = await handler ( {
@@ -1589,6 +1595,7 @@ describe('Workflow Prompts', () => {
15891595 } ) ;
15901596 const text = result . messages [ 0 ] . content . text ;
15911597 expect ( text ) . toContain ( 'does not exist' ) ;
1598+ expect ( text ) . toContain ( 'nonexistent/db' ) ;
15921599 } ) ;
15931600 } ) ;
15941601} ) ;
0 commit comments