Commit 4cdd18e8 authored by Mike Greiling's avatar Mike Greiling

Merge branch 'winh-jest-require-assertions' into 'master'

Make sure that each Jest test contains an assertion

See merge request gitlab-org/gitlab-ce!31967
parents 4a772d50 d0e53f1a
...@@ -93,3 +93,9 @@ Object.assign(global, { ...@@ -93,3 +93,9 @@ Object.assign(global, {
clearTimeout(id); 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment