ToolsBeginner

Assertion

Also known as test assertion · assert

A check that states an expected condition and reports a failure when it is not met.

In the real world

expect(results).toHaveLength(3); asserts that a search returned three entries.

Related

Go a little deeper