Make sure that each Jest test contains an assertion
This commit is contained in:
parent
4a772d50ab
commit
d0e53f1aca
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue