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
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
More Decks by CypressKuo
See All by CypressKuo
Deep-copying.pdf
cypresskuo
0
42
CSS_for_Web_Vitals.pdf
cypresskuo
0
47
談談_Code_review.pdf
cypresskuo
0
52
REST_vs_GraphQL_今夜はご注文はどっち.pdf
cypresskuo
0
27
CSS_重構.pdf
cypresskuo
0
30
跟上_JS_的腳步-ES2020.pdf
cypresskuo
0
35
Core_Web_Vitals.pdf
cypresskuo
0
62
這個時代人人都知道的敏捷開發.pdf
cypresskuo
0
65
Webassembly.pdf
cypresskuo
0
19
Other Decks in Technology
See All in Technology
GuardDuty 検知対応を DevOps Agent で効率化しようとしている話 / GuardDuty Investigations with DevOps Agent
masahirokawahara
1
330
「重なり」は迎える側がつくる ― 人もAIエージェントも歓迎するプロダクトエンジニアリング ―
go0517go
PRO
0
260
振り返りこそエンジニアの本領
negima
0
330
AI-DLCって実際どう? 〜聞きたいこと全部聞いてみる〜
news_it_enj
0
240
PM領域でのAI Agentの活用
lycorptech_jp
PRO
0
280
Bet AI Day 2026丨バクラク Autopilot、業務システムの再設計
layerx
PRO
2
1.6k
Sigmaユーザーのための有用リソース一挙公開 & Sigmaで使えるMCP #sigma_ucj /useful-resources-for-sigma-computing-users-and-mcps-with-sigma
shinyaa31
0
150
リージョンの壁を越える、 ちょっと変わったAWSサービスの話
falken
PRO
0
270
enechainの内製セルフサービスプラットフォーム
hiyosi
0
130
Genie Code ワークショップ 応用編 / Genie-Code-Workshop-advanced
databricksjapan
PRO
0
360
Backstageでつくるセルフサービスな社内開発基盤
kikunosuke75
1
360
V8コントリビュート超入門
riyaamemiya
0
150
Featured
See All Featured
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
520
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
45k
Facilitating Awesome Meetings
lara
57
7.1k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
560
Optimising Largest Contentful Paint
csswizardry
37
3.9k
Context Engineering - Making Every Token Count
addyosmani
9
1.1k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.5k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
410
Mobile First: as difficult as doing things right
swwweet
225
10k
Designing for Timeless Needs
cassininazir
1
470
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Transcript
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