Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Vue.js 單元測試 -Jest
Search
CypressKuo
April 28, 2017
Technology
200
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Vue.js 單元測試 -Jest
Vue.js 單元測試 with Jest
CypressKuo
April 28, 2017
Transcript
9 slides
Vue.js 單元測試 -Jest 2017/04/28 @前端組例會 cypresskuo
Jest Painless JavaScript Testing - Easy Setup - Instant Feedback
- Snapshot Testing - Zero configuration testing platform - Facebook 開源專案 2
Easy Setup Zero configuration testing platform 3
Instant Feedback --watch --watchAll 4
Snapshot Testing 將 React trees 或是其他可序列化的 UI 截取下來, 防止無意間修改到組件的某個部份。 -
server side render 5
6
其他功能 DOM Testing (需要其他元件 TestUtil) Mock Function 覆蓋率報告 --coverage http://stackoverflow.com/questions/26618243/how-do-i-read-an-istanbul-coverage-report
7
參考資料 http://facebook.github.io/jest/ https://vuejs.org/v2/guide/unit-testing.html http://laichuanfeng.com/work/jest-snapshot-and-dom-testing-in-react/ https://hackernoon.com/jest-for-all-episode-1-vue-js-d616bccbe186 8
感謝聆聽 9
More Decks by CypressKuo
See All by CypressKuo
Deep-copying.pdf
cypresskuo
0
45
CSS_for_Web_Vitals.pdf
cypresskuo
0
52
談談_Code_review.pdf
cypresskuo
0
57
REST_vs_GraphQL_今夜はご注文はどっち.pdf
cypresskuo
0
31
CSS_重構.pdf
cypresskuo
0
37
跟上_JS_的腳步-ES2020.pdf
cypresskuo
0
43
Core_Web_Vitals.pdf
cypresskuo
0
65
這個時代人人都知道的敏捷開發.pdf
cypresskuo
0
93
Webassembly.pdf
cypresskuo
0
24
Other Decks in Technology
See All in Technology
生成AIによる情報システムへのインパクト (2026年11月版)
taka_aki
0
130
認知の質も文化醸成も。数年取り組んで見えてきた技術広報のKPI設計 / Tech PR KPIs: Lessons on Awareness Quality and Culture After Several Years
bitkey
PRO
0
280
技術同人誌を作る方法
yoshimura_datam
0
120
信頼性を犠牲にせず、PR マージからデプロイまで人の介入を完全にゼロにするまでの道のり
knwoop
4
2.3k
Metadata - Section 4 : MODS (Metadata Object Description Schema )
mohab1
0
200
kubellの最新データ分析環境
kubell_hr
2
300
Webメール開発を大幅に変えたJMAPというゲームチェンジャー
tascript
9
6.1k
40以上のマイクロサービスを支えるKubernetes JITアクセス — 160以上の恒久RoleBindingを削減
jumpe1
0
120
Kiro Crew の Conductor mode: 1 つのチャットに渡したゴールを、コンダクターがワーカーに分けて任せる
inariku
PRO
1
150
Terraform 0 to 100:100個以上のリポジトリを常に最新にし続けるための自動化
sue445
3
1.5k
Well, that’s weird…
csswizardry
3
260
OCI Artifact による自動運転タクシーに向けた OTA 基盤の構築
biwashi
1
310
Featured
See All Featured
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
650
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.5k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
320
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
The Language of Interfaces
destraynor
162
27k
The Curse of the Amulet
leimatthew05
4
17k
Designing Powerful Visuals for Engaging Learning
tmiket
1
670
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
490
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Color Theory Basics | Prateek | Gurzu
gurzu
1
530
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
480