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
38
CSS_for_Web_Vitals.pdf
cypresskuo
0
42
談談_Code_review.pdf
cypresskuo
0
50
REST_vs_GraphQL_今夜はご注文はどっち.pdf
cypresskuo
0
25
CSS_重構.pdf
cypresskuo
0
29
跟上_JS_的腳步-ES2020.pdf
cypresskuo
0
32
Core_Web_Vitals.pdf
cypresskuo
0
57
這個時代人人都知道的敏捷開發.pdf
cypresskuo
0
63
Webassembly.pdf
cypresskuo
0
14
Other Decks in Technology
See All in Technology
AI-DLCを活用した高品質・安全なAI駆動開発実践 / AI Driven Development with AI-DLC
yoshidashingo
0
140
ポケモンの型をTypeScriptの型システムで表現してみた
subroh0508
0
340
サイバーセキュリティ概論 / Introduction to Cybersecurity
ks91
PRO
0
170
LLMと共に進化するプロセスを目指して
ymatsuwitter
12
3.4k
Dario Amodi『Policy on the AI Exponential』を理解する
nagatsu
0
200
タクシーアプリ『GO』の実践的データ活用
mot_techtalk
3
160
Oracle AI Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
4
2.8k
protovalidate-es を導入してみた
bengo4com
0
140
DevOps Agentで始めるAWS運用 〜フロンティアエージェントが変える運用の現場〜
nyankotaro
1
280
ITエンジニアを取り巻く環境とキャリアパス / A career path for Japanese IT engineers
takatama
4
1.8k
AWSシリコン最前線 〜AI時代のチップ選択を読み解く〜
htokoyo
1
170
Claude code Orchestra
ozakiomumkj
3
990
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
201
75k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
How to make the Groovebox
asonas
2
2.2k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
460
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.3k
How to Think Like a Performance Engineer
csswizardry
28
2.6k
The Language of Interfaces
destraynor
162
27k
From π to Pie charts
rasagy
0
200
Building the Perfect Custom Keyboard
takai
2
780
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
190
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
200
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