message: Test initial value with undefined.
diff: @@ -175,4 +175,28 @@ describe('useHistoryTravel', () => {
  expect(hook.result.current.backLength).toEqual(0);
  expect(hook.result.current.forwardLength).toEqual(0);
  });
  +
  + it('reset new initial value should work with undefined', () => {
  + const hook = renderHook(() => useHistoryTravel('init'));
  + act(() => {
  + hook.result.current.setValue('abc');
  + });
  + act(() => {
  + hook.result.current.setValue('def');
  + });
  + act(() => {
  + hook.result.current.setValue('hij');
  + });
  + act(() => {
  + hook.result.current.go(-1);
  + });
  + expect(hook.result.current.backLength).toEqual(2);
  + expect(hook.result.current.forwardLength).toEqual(1);
  + act(() => {
  + hook.result.current.reset(true, undefined);
  + });
  + expect(hook.result.current.value).toEqual(undefined);
  + expect(hook.result.current.backLength).toEqual(0);
  + expect(hook.result.current.forwardLength).toEqual(0);
  + });
  });
  