@@ -15,7 +15,8 @@ import {sendInput} from '../test_case_utils.js';
1515
1616const execAsync = promisify ( exec ) ;
1717const dirname = process . cwd ( ) ;
18- const TEST_EXECUTION_TIMEOUT = 40000 ;
18+ const TEST_EXECUTION_TIMEOUT = 60000 ;
19+ const HOOK_TIMEOUT = 120000 ;
1920
2021describe ( 'App loader CLI integration' , ( ) => {
2122 describe . each ( [ 'app_ts' , 'app_js' , 'app_default' ] ) (
@@ -29,7 +30,7 @@ describe('App loader CLI integration', () => {
2930
3031 beforeAll ( async ( ) => {
3132 await execAsync ( 'npm install' , { cwd : projectPath } ) ;
32- } , TEST_EXECUTION_TIMEOUT ) ;
33+ } , HOOK_TIMEOUT ) ;
3334
3435 it (
3536 'should run app via package.json start script and get responses' ,
@@ -62,7 +63,7 @@ describe('App loader CLI integration', () => {
6263 await fs
6364 . unlink ( path . join ( projectPath , 'package-lock.json' ) )
6465 . catch ( ( ) => { } ) ;
65- } , TEST_EXECUTION_TIMEOUT ) ;
66+ } , HOOK_TIMEOUT ) ;
6667 } ,
6768 ) ;
6869} ) ;
@@ -77,7 +78,8 @@ describe('AgentLoader discovery and loading integration', () => {
7778 beforeAll ( async ( ) => {
7879 await execAsync ( 'npm install' , { cwd : projectPath } ) ;
7980 loader = new AgentLoader ( projectPath ) ;
80- } , TEST_EXECUTION_TIMEOUT ) ;
81+ await loader . preloadAgents ( ) ;
82+ } , HOOK_TIMEOUT ) ;
8183
8284 it (
8385 'should discover apps vs agents across directories and standalone files' ,
@@ -138,5 +140,5 @@ describe('AgentLoader discovery and loading integration', () => {
138140 await fs
139141 . unlink ( path . join ( projectPath , 'package-lock.json' ) )
140142 . catch ( ( ) => { } ) ;
141- } , TEST_EXECUTION_TIMEOUT ) ;
143+ } , HOOK_TIMEOUT ) ;
142144} ) ;
0 commit comments