Commit e5126fc3 authored by Mike Greiling's avatar Mike Greiling

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

Make sure that each Jest test contains an assertion (EE-port)

See merge request gitlab-org/gitlab-ee!15478
parents 20952e74 16635f88
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment