@@ -25,14 +25,15 @@ describe('ToolkitLibRunnerEngine - Snapshot Path Handling', () => {
2525
2626 engine = new ToolkitLibRunnerEngine ( {
2727 workingDirectory : '/test/dir' ,
28+ region : 'us-dummy-1' ,
2829 } ) ;
2930 } ) ;
3031
3132 it ( 'should use fromAssemblyDirectory when app is a path to existing snapshot directory' , async ( ) => {
3233 const snapshotPath = 'test.snapshot' ;
3334 const fullSnapshotPath = path . join ( '/test/dir' , snapshotPath ) ;
3435 const mockCx = { produce : jest . fn ( ) } ;
35- const mockLock = { dispose : jest . fn ( ) } ;
36+ const mockLock = { dispose : jest . fn ( ) , cloudAssembly : { stacksRecursively : [ ] } } ;
3637
3738 // Mock fs to indicate the snapshot directory exists
3839 mockedFs . pathExistsSync . mockReturnValue ( true ) ;
@@ -55,7 +56,7 @@ describe('ToolkitLibRunnerEngine - Snapshot Path Handling', () => {
5556 it ( 'should use fromCdkApp when app is not a path to existing directory' , async ( ) => {
5657 const appCommand = 'node bin/app.js' ;
5758 const mockCx = { produce : jest . fn ( ) } ;
58- const mockLock = { dispose : jest . fn ( ) } ;
59+ const mockLock = { dispose : jest . fn ( ) , cloudAssembly : { stacksRecursively : [ ] } } ;
5960
6061 // Mock fs to indicate the path doesn't exist
6162 mockedFs . pathExistsSync . mockReturnValue ( false ) ;
@@ -76,7 +77,7 @@ describe('ToolkitLibRunnerEngine - Snapshot Path Handling', () => {
7677 const appPath = 'app.js' ;
7778 const fullAppPath = path . join ( '/test/dir' , appPath ) ;
7879 const mockCx = { produce : jest . fn ( ) } ;
79- const mockLock = { dispose : jest . fn ( ) } ;
80+ const mockLock = { dispose : jest . fn ( ) , cloudAssembly : { stacksRecursively : [ ] } } ;
8081
8182 // Mock fs to indicate the path exists but is not a directory
8283 mockedFs . pathExistsSync . mockReturnValue ( true ) ;
0 commit comments