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
Unit Testing for Frontend Code at Blibli.com
Search
Irfan Maulana
January 26, 2018
Programming
1
210
Unit Testing for Frontend Code at Blibli.com
Speak about Unit Test implementation for frontend code in Blibli.com especially in Vue.js framework
Irfan Maulana
January 26, 2018
Tweet
Share
More Decks by Irfan Maulana
See All by Irfan Maulana
Mengukur dan meningkatkan performa website
mazipan
1
150
Testing JavaScript
mazipan
0
110
Membuat Website Zaman Sekarang
mazipan
0
380
Kinerja Web 101 - Edisi 2022
mazipan
1
310
Layout Repaint & The Lessons Learned
mazipan
0
290
Bagaimana implementasi mockup design
mazipan
0
320
Memulai karir sebagai web programmer
mazipan
0
600
Membuat laporan kecepatan web untuk blog
mazipan
0
400
Bongkar Dapur Webnya #PHPID-OL
mazipan
0
370
Other Decks in Programming
See All in Programming
Java 22 Overview
kishida
1
180
二郎系ラーメンのコールで学ぶ AST 解析
memory1994
PRO
7
1.7k
Rethinking UI building strategies @ SFI 2024
letelete
0
270
Node.js v22 で変わること
yosuke_furukawa
PRO
9
3.4k
ゆるい個人開発のススメ
kuroppe1819
10
990
Compose-View Interop in Practice (mDevCamp 2024)
stewemetal
0
140
"config" ってなんだ? / What is "config"?
okashoi
0
240
Rubyでたのしむクリエイティブコーディング/Enjoy Creative coding with Ruby
chobishiba
1
180
スクラムガイドのスプリントレトロスペクティブを改めて読みかえしてみた / Re-reading the Sprint Retrospective Section in the Scrum Guide
mackey0225
3
430
GitHub Actionsで泣かないためにやっておきたい設定 / Recommended GHA settings to avoid crying
pinkumohikan
3
530
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
650
使ってみよう Azure AI Document Intelligence
kosmosebi
2
310
Featured
See All Featured
Docker and Python
trallard
34
2.7k
Debugging Ruby Performance
tmm1
70
11k
Optimising Largest Contentful Paint
csswizardry
8
2.4k
What's in a price? How to price your products and services
michaelherold
237
11k
Happy Clients
brianwarren
92
6.4k
Ruby is Unlike a Banana
tanoku
96
10k
Producing Creativity
orderedlist
PRO
337
39k
In The Pink: A Labor of Love
frogandcode
138
21k
Designing the Hi-DPI Web
ddemaree
276
33k
Building an army of robots
kneath
300
41k
Teambox: Starting and Learning
jrom
128
8.4k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
14
1.5k
Transcript
UNIT TESTING FOR FRONTEND CODE at Blibli.com Irfan Maulana |
Front End Developer
About Me
Fans ?
Blibli.com Frontend Code ⚔ We believe in Green framework (*not
Blue)
None
'
Blackbox vs Whitebox Testing
Blibli.com Frontend Unit Test Tools • karma runner • karma-mocha
• karma-sinon-chai • karma-babel-preprocessor • Karma-coverage • karma-sourcemap-loader • karma-spec-reporter • karma-webpack • karma-phantomjs-launcher
Automate on Git Commit • Developer commit code • Automate
run build and test • Run Code Analysis • Quality Passed ? ✅ : ⛔
Quality Gate
Karma vs Jest • https://stackshare.io/stackups/jest-vs-karma-runner update in January 26 2018
Let’s take a look the codes…
Vue Component
Unit Testing Vue Component
How (*Blue) Doing Unit Test ?
Vue Unit Test with Avoriaz
Jest-in-Vue
Space for Improvement (for Blibli.com) • Move from Karma to
Jest – Simplify tooling • Add Avoriaz / vue-test-utils – UI centric testing • End 2 End Test for Developer – Better quality delivery • Etc…
Do you like my talks ? https://github.com/mazipan https://github.com/mazipan/talks https://github.com/mazipan/project-catalog
THANK YOU