提交 d0e53f1a 编写于 作者: W Winnie Hellmann 提交者: Mike Greiling

Make sure that each Jest test contains an assertion

上级 4a772d50
......@@ -93,3 +93,9 @@ Object.assign(global, {
clearTimeout(id);
},
});
// make sure that each test actually tests something
// see https://jestjs.io/docs/en/expect#expecthasassertions
beforeEach(() => {
expect.hasAssertions();
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册