How can I create a simple test suite?
const earth = { round: true }
const globe = { round: true }
describe('earth', () => {
it('is round', () => {
expect(earth.round).toBe(true)
expect(earth).not.toBe(globe)
expect(earth).toEqual(globe)
})
})
PreviousHow can I mock functions used by the component I want to test?NextWhat sort of matchers can I use on my expect calls?
Last updated
Was this helpful?