www.devcode.la
www.devcode.la
www.devcode.la
www.devcode.la
www.devcode.la
www.devcode.la
https://twitter.com/Una/status/850451564527591424
www.devcode.la
www.devcode.la
https://twitter.com/Una/status/850451564527591424
www.devcode.la
https://twitter.com/Una/status/850451564527591424
www.devcode.la
www.devcode.la
La evidencia indica que:
www.devcode.la
www.devcode.la
www.devcode.la
Los pasos descritos anteriormente también se conocen como red, green, refactor.
www.devcode.la
Una buena prueba unitaria debe reportar los siguientes datos:
www.devcode.la
www.devcode.la
test('adds 1 + 2 to equal 3', () => {
expect(sum(1, 2)).toBe(3)
});
"scripts": {
"test": "jest"
}
www.devcode.la
{
"presets": ["env"]
}
www.devcode.la
"scripts": {
"test": "jest --coverage"
}
www.devcode.la
"jest": {
"testEnvironment": "jest-environment-node",
"collectCoverageFrom": [
"*.js"
],
"coverageThreshold": {
"global": {
"statements": 50,
"branches": 50,
"functions": 50,
"lines": 50
}
}
}
www.devcode.la
"scripts": {
"test": "jest --coverage",
"test:watch": "jest --watch"
}
www.devcode.la
www.devcode.la
www.devcode.la