Skip to content
代码片段 群组 项目
提交 cb0bf392 编辑于 作者: Winnie Hellmann's avatar Winnie Hellmann 提交者: Paul Slaughter
浏览文件

Add clearMocks Jest config

**Why?**
This removes the need to add `jest.clearAllMocks` manually.
Without this, it's possible for tests to have false positives
because the `mock.calls` is never reset.

**References:**
- https://jestjs.io/docs/en/configuration#clearmocks-boolean
- https://gitlab.com/gitlab-org/gitlab/merge_requests/21860
上级 05926f42
No related branches found
No related tags found
无相关合并请求
显示
48 个添加36 个删除
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册