Welcome!
SSID: Brex Guest
Password: brexbrex
![](https://s3.amazonaws.com/media-p.slid.es/uploads/21592/images/7065153/white-wifi-logo-png-6.png)
ReactJS @ Brex
Felipe Torres
SWE @ Brex
JS/TS Things
@fforres
Being
Lazy
& Testing
![](https://s3.amazonaws.com/media-p.slid.es/uploads/21592/images/7052243/13-512.png)
[TODO: Add photo of me being lazy]
I
Am
Lazy
Laziness (is) the quality that makes you go to great effort to reduce overall energy expenditure.
Larry Wall
Be lazy where it counts
80/20
For many events, roughly 80% of the effects come from 20% of the causes.
80% of your output, comes from 20% of your effort
Productive
Laziness
![](https://s3.amazonaws.com/media-p.slid.es/uploads/21592/images/7052448/giphy__2_.gif)
Work smarter not harder
Lets
Talk
Test
![](https://s3.amazonaws.com/media-p.slid.es/uploads/21592/images/7055113/jest-logo-png-transparent.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/21592/images/7055114/22632046.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/21592/images/7055165/ava.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/21592/images/7055166/mocha.png)
Testing comes in many forms
- Unit Testing
- E2E Testing
- Manual Testing
- Automated Testing
- Smoke Testing
- Regression Testing
- Integration Testing
- Acceptance Testing
- Snapshot Testing
- Visual Testing
- Unit Testing
- E2E Testing
- Manual Testing
- Automated Testing
- Smoke Testing
- Regression Testing
- Integration Testing
- Acceptance Testing
- Snapshot Testing
- Visual Testing
How are WE lazy
- Storybook stories as tests
- Snapshot testing is not a silver bullet (But can get us ~80% there)
- Visual diffing is great (There are alternatives)
Takeaways
Want to be lazier?
- Prettier
- ESLint
- Storybook
- Snapshot Testing
- E2E
- Integration Testing
- Automated Type Generation
- TypeScript
Lazy
Not so Lazy
Laziness @ Brex
• We are in the fin-tech space
• We like keeping up to date
• We move fast
• We like NOT getting pager-dutied
![](https://s3.amazonaws.com/media-p.slid.es/uploads/21592/images/3457157/803726063_20679_14749675912803914883.jpg)
Actual photo of Felipe getting paged for the 8th time in the day.
2015 - Santiago, Chile
We are hiring.
#shamelessplug
Testing For Lazy people
By forres
Testing For Lazy people
- 739