Would it be possible to make it so that you could set or replace the default return value without also resetting previously-added training? Basically, could jest-when be modified to make the following test pass?
it('can add default after training, reduced', async () => {
const fn = jest.fn();
when(fn).calledWith(1).mockReturnValue('a');
fn.mockReturnValue('b');
expect(fn(1)).toEqual('a');
expect(fn(2)).toEqual('b');
});
Would it be possible to make it so that you could set or replace the default return value without also resetting previously-added training? Basically, could jest-when be modified to make the following test pass?