@@ -17,7 +17,7 @@ const cli = (cmd: string) => `node ${cliPath} ${cmd}`;
1717// NOTE: These tests have implementation dependencies
1818// Simpler tests are in src/__tests__/integration/cli-integration.test.ts
1919
20- describe ( 'CLI Integration Tests' , ( ) => {
20+ describe ( 'CLI Integration Tests' , { timeout : 60_000 } , ( ) => {
2121 let testDir : string ;
2222
2323 beforeEach ( ( ) => {
@@ -27,7 +27,7 @@ describe('CLI Integration Tests', () => {
2727 process . chdir ( testDir ) ;
2828
2929 // Initialize StackMemory in test directory
30- execSync ( cli ( 'init' ) , { cwd : testDir , timeout : 10000 } ) ;
30+ execSync ( cli ( 'init' ) , { cwd : testDir , timeout : 30000 } ) ;
3131
3232 // Create context.db since init skips DB creation in test mode
3333 const dbDir = path . join ( testDir , '.stackmemory' ) ;
@@ -98,7 +98,7 @@ describe('CLI Integration Tests', () => {
9898 const result = execSync ( cli ( 'clear --status' ) , {
9999 cwd : testDir ,
100100 encoding : 'utf8' ,
101- timeout : 25000 ,
101+ timeout : 30000 ,
102102 } ) ;
103103
104104 // Updated expectations to match actual output
@@ -112,7 +112,7 @@ describe('CLI Integration Tests', () => {
112112 const result = execSync ( cli ( 'capture' ) , {
113113 cwd : testDir ,
114114 encoding : 'utf8' ,
115- timeout : 15000 ,
115+ timeout : 30000 ,
116116 } ) ;
117117
118118 // Check for any successful output
@@ -128,13 +128,13 @@ describe('CLI Integration Tests', () => {
128128
129129 it ( 'should load handoff document' , { timeout : 30000 } , ( ) => {
130130 // First generate a handoff
131- execSync ( cli ( 'capture' ) , { cwd : testDir , timeout : 15000 } ) ;
131+ execSync ( cli ( 'capture' ) , { cwd : testDir , timeout : 30000 } ) ;
132132
133133 // Then load it
134134 const result = execSync ( cli ( 'restore' ) , {
135135 cwd : testDir ,
136136 encoding : 'utf8' ,
137- timeout : 15000 ,
137+ timeout : 30000 ,
138138 } ) ;
139139
140140 // Just check it ran without error
@@ -143,12 +143,12 @@ describe('CLI Integration Tests', () => {
143143
144144 it ( 'should capture handoff document' , { timeout : 30000 } , ( ) => {
145145 // Generate a capture
146- execSync ( cli ( 'capture' ) , { cwd : testDir , timeout : 15000 } ) ;
146+ execSync ( cli ( 'capture' ) , { cwd : testDir , timeout : 30000 } ) ;
147147
148148 const result = execSync ( cli ( 'capture' ) , {
149149 cwd : testDir ,
150150 encoding : 'utf8' ,
151- timeout : 15000 ,
151+ timeout : 30000 ,
152152 } ) ;
153153
154154 // Just check it ran without error
0 commit comments