May 2019
Intermediate to advanced
496 pages
10h 38m
English
The first test now looks like this:
it('renders the customer first name', () => { customer = { firstName: 'Ashley' }; render(<Appointment customer={customer} />); expect(container.textContent).toMatch('Ashley');});
This is concise and clearly readable.
A good test has three distinct sections:
A great test is not just good but is also the following:
Read now
Unlock full access