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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
CypressKuo
April 28, 2017
Technology
0
190
Vue.js 單元測試 -Jest
Vue.js 單元測試 with Jest
CypressKuo
April 28, 2017
Tweet
Share
More Decks by CypressKuo
See All by CypressKuo
Deep-copying.pdf
cypresskuo
0
32
CSS_for_Web_Vitals.pdf
cypresskuo
0
38
談談_Code_review.pdf
cypresskuo
0
44
REST_vs_GraphQL_今夜はご注文はどっち.pdf
cypresskuo
0
22
CSS_重構.pdf
cypresskuo
0
25
跟上_JS_的腳步-ES2020.pdf
cypresskuo
0
28
Core_Web_Vitals.pdf
cypresskuo
0
53
這個時代人人都知道的敏捷開發.pdf
cypresskuo
0
57
Webassembly.pdf
cypresskuo
0
12
Other Decks in Technology
See All in Technology
AIと新時代を切り拓く。これからのSREとメルカリIBISの挑戦
0gm
2
3.1k
旅先で iPad + Neovim で iOS 開発・執筆した話
zozotech
PRO
0
100
生成AIと余白 〜開発スピードが向上した今、何に向き合う?〜
kakehashi
PRO
0
140
Bedrock PolicyでAmazon Bedrock Guardrails利用を強制してみた
yuu551
0
260
プロポーザルに込める段取り八分
shoheimitani
1
630
インフラエンジニア必見!Kubernetesを用いたクラウドネイティブ設計ポイント大全
daitak
1
380
StrandsとNeptuneを使ってナレッジグラフを構築する
yakumo
1
130
Amazon Bedrock Knowledge Basesチャンキング解説!
aoinoguchi
0
160
Context Engineeringが企業で不可欠になる理由
hirosatogamo
PRO
3
660
AIエージェントを開発しよう!-AgentCore活用の勘所-
yukiogawa
0
190
20260208_第66回 コンピュータビジョン勉強会
keiichiito1978
0
190
【Ubie】AIを活用した広告アセット「爆速」生成事例 | AI_Ops_Community_Vol.2
yoshiki_0316
1
120
Featured
See All Featured
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
120
Prompt Engineering for Job Search
mfonobong
0
160
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
260
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
57
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
440
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
120
Testing 201, or: Great Expectations
jmmastey
46
8.1k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.3k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
0
3.4k
Evolving SEO for Evolving Search Engines
ryanjones
0
130
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Amusing Abliteration
ianozsvald
0
100
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