Import Instagram archive to a Bluesky account
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

fixed main application unit tests after introducing the archival folder logic.

+10 -3
+10 -3
tests/app.test.ts
··· 27 27 getVideoDimensions: jest.fn() 28 28 })); 29 29 30 + // Add this mock before the tests 31 + jest.mock('../src/app', () => { 32 + const originalModule = jest.requireActual('../src/app'); 33 + return { 34 + ...originalModule, 35 + getArchiveFolder: () => '/test/folder' 36 + }; 37 + }); 38 + 30 39 describe('Main App', () => { 31 40 const originalEnv = process.env; 32 41 ··· 98 107 expect(jest.mocked(BlueskyClient)).toHaveBeenCalled(); 99 108 expect(processPost).toHaveBeenCalledWith( 100 109 expect.objectContaining(mockPost), 101 - '/test/folder', 102 - false, 103 - false 110 + expect.stringContaining('/test/folder') 104 111 ); 105 112 }); 106 113