JEST: Testing Framework
Guillermo Fernández-Campoamor Fernández Carlos Manrique Enguita Elena Rodríguez Río Diego Ramírez Amandi
JEST: Testing Framework Guillermo Fernndez-Campoamor Fernndez - - PowerPoint PPT Presentation
JEST: Testing Framework Guillermo Fernndez-Campoamor Fernndez Carlos Manrique Enguita Elena Rodrguez Ro Diego Ramrez Amandi WHAT IS JEST? Jest is a JavaScript testing framework that focus on simplicity HOW TO USE JEST? 1 yarn add
Guillermo Fernández-Campoamor Fernández Carlos Manrique Enguita Elena Rodríguez Río Diego Ramírez Amandi
Jest is a JavaScript testing framework that focus on simplicity
1 3 2
{ "scripts": { "test": "jest" } }
expect(2+2).toBe(4);
const tree = renderer.create(<Link page="http://www.facebook.com"> Facebook</Link>) .toJSON(); expect(tree).toMatchSnapshot(); <a className="normal" href="http://www.facebook.com"
Facebook </a>
1 3 2
Contributors
Users giving money to the dev team through donations or promoting to Backer role. Helping solving issues on Jest
Developer Community Dev Team Money Contributions
1 3 2
RELIABILITY
PERFORMANCE EFFICIENCY
We want good performance for our tests Save costs Tests must be trustable
Jest-cli jest Jest-config 1 2 Jest-haste-map 3 Jest-worker 4 5 6 watchmen SearchSource TestSequencer TestScheduler Jest-worker Jest-runner Jest-jasmine2 Jest-circus Jest-runtime Jest-environment vm 7 8 9 10 11 12 puppeter
Jest-cli jest Jest-config 1 2 Jest-haste-map 3 Jest-worker 4 5 6 watchmen SearchSource TestSequencer TestScheduler Jest-worker Jest-runner Jest-jasmine2 Jest-circus Jest-runtime Jest-environment vm 7 8 9 10 11 12 puppeter
Jest-cli jest Jest-config 1 2 Jest-haste-map 3 Jest-worker 4 5 6 watchmen SearchSource TestSequencer TestScheduler Jest-worker Jest-runner Jest-jasmine2 Jest-circus Jest-runtime Jest-environment vm 7 8 9 10 11 12 puppeter
Jest-cli jest Jest-config 1 2 Jest-haste-map 3 Jest-worker 4 5 6 watchmen SearchSource TestSequencer TestScheduler Jest-worker Jest-runner Jest-jasmine2 Jest-circus Jest-runtime Jest-environment vm 7 8 9 10 11 12 puppeter
Jest-cli jest Jest-config 1 2 Jest-haste-map 3 Jest-worker 4 5 6 watchmen SearchSource TestSequencer TestScheduler Jest-worker Jest-runner Jest-jasmine2 Jest-circus Jest-runtime Jest-environment vm 7 8 9 10 11 12 puppeter
Jest-cli jest Jest-config 1 2 Jest-haste-map 3 Jest-worker 4 5 6 watchmen SearchSource TestSequencer TestScheduler Jest-worker Jest-runner Jest-jasmine2 Jest-circus Jest-runtime Jest-environment vm 7 8 9 10 11 12 puppeter
Take a look to:
Code conventions:
Run
Install:
OR
yarn link jest-cli yarn unlink jest-cli
Show individual fail / passes inline Highlights the errors next to the expect functions Help debug jest tests in vscode Starts Jest automatically
npm install --save-dev jest-extended
Provides new matchers (assertions) to ease testing