With describe, you define a test suite that can contain 1 or more tests.
With test or it method, you define a test.
With the expect method is a matcher which returns the output to the next method. For example toBe()
Check other matcher methods: https://jestjs.io/docs/en/expect
The goal for mocking is to replace something we don’t control with something we do, so it’s important that what we replace it with has all the features we need.
The goal for mocking is to replace something we don’t control with something we do, so it’s important that what we replace it with has all the features we need.