Testing Unitario y de integración
Herramientas
Jest
describe('module', () => {
it('test case', () => {
/* ... */`
})
}) beforeEach()
afterEach()
beforeAll()
afterAll() expect(value)
.not
.toBe(value)
.toBeInstanceOf(Class)
.toBeTruthy()
.toEqual(value)
.toHaveProperty(keyPath, value)
.toMatch(regexOrString)
.toMatchObject(object)
.toThrow(error)
.toThrowErrorMatchingSnapshot()@testing-library/react
@testing-library/jest-dom
Last updated