Make sure that each Jest test contains an assertion

This commit is contained in:
Winnie Hellmann 2019-08-21 18:20:08 +00:00 committed by Mike Greiling
parent 4a772d50ab
commit d0e53f1aca
1 changed files with 6 additions and 0 deletions

View File

@ -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();
});