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
140
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
86
How Traveloka Handle Data Pipeline for Big Things?
hellowin
4
630
Data Lake Implementation in Traveloka
hellowin
2
340
How Big Data Platform Handle Big Things
hellowin
1
160
How Big Data Works in Sale Stock
hellowin
4
500
Interactive Animations with React Native
hellowin
0
180
Loopback Framework for Developing REST API with Node.js
hellowin
1
170
Facebook Developer Circle: Malang - Initial Meet Up
hellowin
0
120
Other Decks in Programming
See All in Programming
株式会社 Sun terras カンパニーデック
sunterras
0
1.9k
Rubyと楽しいをつくる / Creating joy with Ruby
chobishiba
0
200
PostgreSQL を使った快適な go test 環境を求めて
otakakot
0
370
日本だけで解禁されているアプリ起動の方法
ryunakayama
0
360
AI時代でも変わらない技術コミュニティの力~10年続く“ゆるい”つながりが生み出す価値
n_takehata
2
550
LangChain4jとは一味違うLangChain4j-CDI
kazumura
1
120
TROCCOで実現するkintone+BigQueryによるオペレーション改善
ssxota
0
110
CSC307 Lecture 10
javiergs
PRO
1
690
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
350
エージェント開発初心者の僕がエージェントを作った話と今後やりたいこと
thasu0123
0
220
要求定義・仕様記述・設計・検証の手引き - 理論から学ぶ明確で統一された成果物定義
orgachem
PRO
1
500
文字コードの話
qnighy
43
16k
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
KATA
mclloyd
PRO
35
15k
Fireside Chat
paigeccino
41
3.8k
Chasing Engaging Ingredients in Design
codingconduct
0
130
Being A Developer After 40
akosma
91
590k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
340
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
280
BBQ
matthewcrist
89
10k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
1.9k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.8k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
89
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