Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[icestore] Test fail #2895

Closed
lucifer1004 opened this issue Oct 31, 2019 · 2 comments
Closed

[icestore] Test fail #2895

lucifer1004 opened this issue Oct 31, 2019 · 2 comments
Assignees

Comments

@lucifer1004
Copy link

问题描述

clone项目在本地安装完依赖后,直接运行test报错。

错误信息

 FAIL  tests/index.spec.tsx
  ● #Icestore › #useStore › should useStore be ok.

    expect(jest.fn()).toHaveBeenCalledTimes(expected)

    Expected number of calls: 2
    Received number of calls: 1

      130 |       await sleep(10);
      131 | 
    > 132 |       expect(renderFn).toHaveBeenCalledTimes(2);
          |                        ^
      133 |       expect(nameValue.textContent).toEqual(newState.name);
      134 |     });
      135 | 
@lucifer1004
Copy link
Author

Maybe related to this issue testing-library/react-testing-library#517

lucifer1004 added a commit to lucifer1004/icestore that referenced this issue Oct 31, 2019
@lucifer1004
Copy link
Author

Solved by ice-lab/icestore#34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants