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
Yoan Pratama Putra
April 19, 2017
Programming
0
140
Painless UI Testing With Jest
This is slides from my talk at F8 Meetup Malang on 19 April 2017
Yoan Pratama Putra
April 19, 2017
Tweet
Share
More Decks by Yoan Pratama Putra
See All by Yoan Pratama Putra
Testing React Using Jest
oshimayoan
1
110
Other Decks in Programming
See All in Programming
Revisiting the Hotwire Landscape after Turbo 8 @ RailsConf 2024, Detroit
marcoroth
3
610
チーム立ち上げにAWSを活用したらClaudeさんに褒められた話
mkdev10
3
230
Unlocking Potential of Property Based Testing with Ractor
ohbarye
2
630
教えて!スクラムコーチ品質とスピードのバランスはどうすりゃいいの?
pinboro
0
160
Criando a Woovi em uma semana
daniloab
0
120
仕様と実装で学ぶOpenTelemetry
drumato
2
1.2k
Jetpack Composeとデザインシステム
rmakiyama
0
240
RaaP
ksss
0
160
Escolhendo (ou não) o melhor ORM para o seu projeto
andreiacsilva
1
170
An adventure of Happy Eyeballs
coe401_
1
310
FoodGram
iseruuuuu
0
230
CREってこういうこと? 体験入社 - 提案資料 - / what-is-cre-trial-employment
shinden
1
620
Featured
See All Featured
Fireside Chat
paigeccino
22
2.7k
BBQ
matthewcrist
80
8.8k
The Art of Programming - Codeland 2020
erikaheidi
43
12k
Making Projects Easy
brettharned
109
5.5k
No one is an island. Learnings from fostering a developers community.
thoeni
16
2.1k
Debugging Ruby Performance
tmm1
70
11k
Automating Front-end Workflow
addyosmani
1357
200k
A better future with KSS
kneath
231
16k
Building Applications with DynamoDB
mza
88
5.7k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
7k
GraphQLとの向き合い方2022年版
quramy
33
13k
Design by the Numbers
sachag
274
18k
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