David Sánchez
Software Engineer. Passionate about technology. Developer by passion. Making cool things at @ubidots
By:
David Sánchez (@juanda95)
Computer Engineer
Developer at Ubidots
I ❤️ JS
First module version
After 10 revisions
Source: Experience 😅
Framework de unit testing creado por Facebook
Utilidades para pruebas creadas por Airbnb
npm install --save-dev enzyme react-test-renderer
yarn add --dev enzyme react-test-renderer
https://github.com/juanda95/react-testing
Agrupa diferentes tests relacionados en un "test suite"
describe('Test suite', () => {})
Es lo mínimo necesario a la hora de crear un archivo de tests.
it('Test name', () => {})
Da acceso a diferentes comparadores que nos permitirán verificar nuestro código
expect(1+1).toEqual(2)
By David Sánchez
Software Engineer. Passionate about technology. Developer by passion. Making cool things at @ubidots