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
Testando componentes mais rápido que miojo
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Gustavo Guimarães
August 11, 2018
Programming
1
57
Testando componentes mais rápido que miojo
Lightning Talk realizada no Front In Vale 2018
Gustavo Guimarães
August 11, 2018
Tweet
Share
More Decks by Gustavo Guimarães
See All by Gustavo Guimarães
Construindo SPA's consistentes com Vue Router
gustavogf
1
69
Other Decks in Programming
See All in Programming
並行開発のためのコードレビュー
miyukiw
2
1.9k
JPUG勉強会 OSSデータベースの内部構造を理解しよう
oga5
2
210
PostgreSQL を使った快適な go test 環境を求めて
otakakot
0
140
AI活用のコスパを最大化する方法
ochtum
0
100
猫の手も借りたい!ので AIエージェント猫を作って社内に放した話 Claude Code × Container Lambda の Slack Bot "DevNeko"
naramomi7
0
200
今更考える「単一責任原則」 / Thinking about the Single Responsibility Principle
tooppoo
2
800
AIに仕事を丸投げしたら、本当に楽になれるのか
dip_tech
PRO
0
150
AI巻き込み型コードレビューのススメ
nealle
2
2.2k
Go1.26 go fixをプロダクトに適用して困ったこと
kurakura0916
0
230
株式会社 Sun terras カンパニーデック
sunterras
0
1.8k
朝日新聞のデジタル版を支えるGoバックエンド ー価値ある情報をいち早く確実にお届けするために
junkiishida
1
230
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
1.9k
Featured
See All Featured
Navigating Team Friction
lara
192
16k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
160
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
Claude Code のすすめ
schroneko
67
210k
Balancing Empowerment & Direction
lara
5
920
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.7k
Six Lessons from altMBA
skipperchong
29
4.2k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
78
The Mindset for Success: Future Career Progression
greggifford
PRO
0
250
Evolving SEO for Evolving Search Engines
ryanjones
0
140
Transcript
Testando componentes mais rápido que miojo
Gustavo Guimarães Desenvolvedor front end na Quero Educação gustavogmrs gustavoguimrs
gustavogf
Por que testar?
Garantir que a sua aplicação está funcionando
Jest
None
Teste de Snapshot
Qualquer framework JS
None
<mcs-list :query="search" />
<input type="text" v-model="search">
$ yarn add jest
{ "scripts": { "test": "jest" } } package.json
McsList.spec.js
McsList.spec.js
McsList.spec.js
McsList.spec.js
McsList.spec.js
McsList.spec.js
McsList.spec.js
McsList.spec.js
McsList.spec.js
McsList.spec.js
McsList.spec.js
$ yarn test
None
Inicia teste Tem snapshot? Compara snapshots Cria novo snapshot Teste
passa Teste passa Teste falha Sim Não != =
Inicia teste Tem snapshot? Cria novo snapshot Teste passa Não
McsList.spec.js.snap
McsList.spec.js.snap
McsList.spec.js.snap
None
None
McsList.spec.js.snap
None
None
$ yarn test
None
None
Inicia teste Tem snapshot? Compara snapshots Cria novo snapshot Teste
passa Teste passa Teste falha Sim Não != =
Inicia teste Tem snapshot? Compara snapshots Teste passa Teste falha
Sim != =
None
None
$ yarn test
None
None