We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7697015 commit 93c0b0fCopy full SHA for 93c0b0f
packages/easy-test/src/mock/Mocks.ts
@@ -47,7 +47,7 @@ export class Mocks {
47
}),
48
};
49
50
- static getArg = <T>(mock: unknown, call = 0, arg = 0): T | undefined => {
+ static readonly getArg = <T>(mock: unknown, call = 0, arg = 0): T | undefined => {
51
if (!isJestMock(mock)) throw new Error('Function provided is not a Jest mock');
52
return mock.mock.calls[call]?.[arg] as T;
53
0 commit comments