export class TestArrowMockStore {
test = (_value: number) => {};
}
describe('Mocking arrow function tests', () => {
const store = mock(TestArrowMockStore);
when(store.test(12)).thenReturn();
const storeInstance = instance(store);
test('store test', () => {
storeInstance.test(12);
verify(store.test(12)).once();
});
});
but i get this:
Mocking arrow function tests › store test
TypeError: storeInstance.test is not a function
test('store test', () => {
storeInstance.test(12);
^
verify(store.test(12)).once();
});
| });
Try to test calling method width parameter,
but i get this:
What I do wrong?