> product_inventory@0.0.1 test > jest src/mediaManager.integration.test.ts console.log MediaService: Getting unified state for SKU SKU-123 at MediaService.log [as getUnifiedMediaState] (src/services/MediaService.ts:69:13) console.log MediaService: Getting unified state for SKU SKU-123 at MediaService.log [as getUnifiedMediaState] (src/services/MediaService.ts:69:13) console.log MediaService: Getting unified state for SKU SKU-123 at MediaService.log [as getUnifiedMediaState] (src/services/MediaService.ts:69:13) console.log MediaService: Processing changes for SKU SKU-123 at MediaService.log [as processMediaChanges] (src/services/MediaService.ts:162:13) console.log MediaService: Processing changes for SKU SKU-123 at MediaService.log [as processMediaChanges] (src/services/MediaService.ts:162:13) console.log MediaService: Processing changes for SKU SKU-123 at MediaService.log [as processMediaChanges] (src/services/MediaService.ts:162:13) console.log Adopting Orphan: backfill.jpg at log (src/services/MediaService.ts:200:21) at Array.forEach () console.log MediaService: Processing changes for SKU SKU-123 at MediaService.log [as processMediaChanges] (src/services/MediaService.ts:162:13) console.log Deleting item: delete_me.jpg at log (src/services/MediaService.ts:182:17) at Array.forEach () console.log MediaService: Processing changes for SKU SKU-123 at MediaService.log [as processMediaChanges] (src/services/MediaService.ts:162:13) node.exe : FAIL src/mediaManager.integration.test.ts At C:\nvm4w\nodejs\npm.ps1:29 char:3 + & $NODE_EXE $NPM_CLI_JS $args + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (FAIL src/mediaM...gration.test.ts:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError MediaService V2 Integration Logic getUnifiedMediaState (Phase A) √ should match Drive and Shopify items by ID (Strong Link) (31 ms) √ should identify Drive-Only items (New Uploads) (1 ms) √ should identify Shopify-Only items (1 ms) processMediaChanges (Phase B) √ should rename Drive files sequentially (2 ms) × should call Shopify Reorder Mutation (2 ms) × should backfill Shopify-Only items to Drive (1 ms) √ should delete removed items (1 ms) √ should upload Drive-Only items (1 ms) ● MediaService V2 Integration Logic › processMediaChanges (Phase B) › should call Shopify Reorder Mutation expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: "gid://shopify/Product/123", [{"id": "s10", "newPosition": "0"}, {"id": "s20", "newPosition": "1"}] Number of calls: 0   173 | service.processMediaChanges("SKU-123", finalState, dummyPid)  174 | > 175 | expect(mockShopify.productReorderMedia).toHaveBeenCalledWith(dummyPid, [  | ^  176 | { id: "s10", newPosition: "0" },  177 | { id: "s20", newPosition: "1" }  178 | ]) at Object. (src/mediaManager.integration.test.ts:175:53) ● MediaService V2 Integration Logic › processMediaChanges (Phase B) › should backfill Shopify-Only items to Drive expect(jest.fn()).toHaveBeenCalled() Expected number of calls: >= 1 Received number of calls: 0   192 | service.processMediaChanges("SKU-123", finalState, dummyPid)  193 | > 194 | expect(mockDrive.createFile).toHaveBeenCalled()  | ^  195 | expect(mockDrive.updateFileProperties).toHaveBeenCalledWit h("new_created_file_id", { shopify_media_id: "s99" })  196 | })  197 | at Object. (src/mediaManager.integration.test.ts:194:42) -----------------|---------|----------|---------|---------|----------------------------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s -----------------|---------|----------|---------|---------|----------------------------------------- All files | 74.69 | 72.34 | 85 | 74.83 | MediaService.ts | 74.69 | 72.34 | 85 | 74.83 | 28-65,95-98,105-108,207-226,280-281,330 -----------------|---------|----------|---------|---------|----------------------------------------- Test Suites: 1 failed, 1 total Tests: 2 failed, 6 passed, 8 total Snapshots: 0 total Time: 1.354 s, estimated 3 s Ran all test suites matching /src\\mediaManager.integration.test.ts/i.