MCPcopy
hub / github.com/jestjs/jest / noAssertions

Function noAssertions

e2e/failures/__tests__/assertionCount.test.js:20–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18};
19
20const noAssertions = () => {
21 expect.assertions(0);
22 expect(true).toBeTruthy();
23};
24
25const hasNoAssertions = () => {
26 expect.hasAssertions();

Callers

nothing calls this directly

Calls 3

expectFunction · 0.85
assertionsMethod · 0.80
toBeTruthyMethod · 0.80

Tested by

no test coverage detected