Skip to content

Commit d26ebb9

Browse files
fix: correct pushRequesterSecret mock return type in tests
- Fix TypeScript error in processBulkRequest unit tests - Update mock to return Record<number, string> instead of string - Add proper Jest typing for pushRequesterSecret mock function
1 parent b2d5093 commit d26ebb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sdk/tests/unit/dataProtectorCore/processBulkRequest.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jest.unstable_mockModule(
7070
);
7171

7272
jest.unstable_mockModule('../../../src/utils/pushRequesterSecret.js', () => ({
73-
pushRequesterSecret: jest.fn().mockResolvedValue('secrets-id-123'),
73+
pushRequesterSecret: jest.fn<() => Promise<Record<number, string>>>().mockResolvedValue({ 1: 'secrets-id-123' }),
7474
}));
7575

7676
describe('processBulkRequest', () => {

0 commit comments

Comments
 (0)