Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Painless UI Testing with Jest
Search
Andi N. Dirgantara
April 19, 2017
Programming
1
130
Painless UI Testing with Jest
This slides was presented on f8meetupmalang2017.splashthat.com by Yoan Pratama Putra from KodeFox.
Andi N. Dirgantara
April 19, 2017
Tweet
Share
More Decks by Andi N. Dirgantara
See All by Andi N. Dirgantara
Building Scalable and Flexible API by Leveraging GraphQL and BigTable
hellowin
0
75
How Traveloka Handle Data Pipeline for Big Things?
hellowin
4
610
Data Lake Implementation in Traveloka
hellowin
2
310
How Big Data Platform Handle Big Things
hellowin
1
130
How Big Data Works in Sale Stock
hellowin
4
490
Interactive Animations with React Native
hellowin
0
140
Loopback Framework for Developing REST API with Node.js
hellowin
1
140
Facebook Developer Circle: Malang - Initial Meet Up
hellowin
0
110
Other Decks in Programming
See All in Programming
rails statsで大解剖 🔍 “B/43流” のRailsの育て方を歴史とともに振り返ります
shoheimitani
2
930
開発者とQAの越境で自動テストが増える開発プロセスを実現する
92thunder
1
180
ドメインイベント増えすぎ問題
h0r15h0
1
180
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
1
440
Webエンジニア主体のモバイルチームの 生産性を高く保つためにやったこと
igreenwood
0
330
Refactor your code - refactor yourself
xosofox
1
260
StarlingMonkeyを触ってみた話 - 2024冬
syumai
3
270
testcontainers のススメ
sgash708
1
120
ソフトウェアの振る舞いに着目し 複雑な要件の開発に立ち向かう
rickyban
0
890
わたしの星のままで一番星になる ~ 出産を機にSIerからEC事業会社に転職した話 ~
kimura_m_29
0
180
nekko cloudにおけるProxmox VE利用事例
irumaru
3
420
Keeping it Ruby: Why Your Product Needs a Ruby SDK - RubyWorld 2024
envek
0
180
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.5k
The Language of Interfaces
destraynor
154
24k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Practical Orchestrator
shlominoach
186
10k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
A designer walks into a library…
pauljervisheath
204
24k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
It's Worth the Effort
3n
183
28k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
0
96
Embracing the Ebb and Flow
colly
84
4.5k
Optimising Largest Contentful Paint
csswizardry
33
3k
Transcript
PAINLESS UI TESTING WITH JEST YOAN PRATAMA PUTRA
TESTING TESTING TESTING TESTING TESTING TESTING TESTING TESTING TESTING
WHY TESTING?
PAINLESS UI TESTING WITH JEST - KODEFOX ▸ To find
bugs ▸ To find defects ▸ To ensure what we create does not break ▸ To ensure what we create does what it is supposed to do
HOW TO DO TESTING?
None
PAINLESS UI TESTING WITH JEST - KODEFOX ▸ Fast ▸
Easy Setup ▸ Instant Feedback ▸ Snapshot Testing ▸ From Facebook
PAINLESS UI TESTING WITH JEST - KODEFOX ▸ Watch mode
▸ Mock modules and functions ▸ Mock react native components ▸ Mock react native platform OS FEATURES
None
None
WHAT ABOUT UI COMPONENTS?
SNAPSHOT TESTING
None
expect(component).toMatchSnapshot() get the output of the function save it into
a .snap file has saved snapshot? compare snapshots
SNAPSHOT TESTING PASS FAIL CHANGED BUG
None
None
None
None
None
None
None
WHAT WILL HAPPEN?
None
None
SNAPSHOT TESTING PASS FAIL CHANGED BUG
WHAT WILL HAPPEN?
None
SNAPSHOT TESTING PASS FAIL CHANGED BUG
PAINLESS UI TESTING WITH JEST - KODEFOX BENEFITS OF SNAPSHOT
TESTING ▸ Automated process ▸ Adapt to changes ▸ Easy to maintain
Thank you! @oshimayoan oshimayoan/testing-react-demo