Skip to content

Commit b6b92aa

Browse files
committed
Fail all tests with no assertions in them
1 parent c4dcf51 commit b6b92aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.jest/setupTests.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ import { configure } from "enzyme";
33
import Adapter from "enzyme-adapter-react-16";
44

55
configure({ adapter: new Adapter() });
6+
7+
beforeEach(() => {
8+
expect.hasAssertions();
9+
});

0 commit comments

Comments
 (0)