Jest Cheatsheet
A list of some common Jest functions and matches that you may find helpful.
We'll cover the following...
Defining tests
Grouping tests: describe('<Component />', () => {});
.
Individual tests: it('does something', () => {});
or test('does something', () => {});
.
Setup and teardown
beforeEach(() => {})
: Runs before each test.
afterEach(() => {})
: Runs ...