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
Gustavo Guimarães
August 11, 2018
Programming
62
1
Share
Testando componentes mais rápido que miojo
Lightning Talk realizada no Front In Vale 2018
Gustavo Guimarães
August 11, 2018
More Decks by Gustavo Guimarães
See All by Gustavo Guimarães
Construindo SPA's consistentes com Vue Router
gustavogf
1
75
Other Decks in Programming
See All in Programming
Oxlintはいかにしてtsgolintのlint ruleを呼び出しているのか
syumai
2
1k
Technical Debt: Understanding it Rightly, Engaging it Rightly #LaravelLiveJP
shogogg
0
180
Moments When Things Go Wrong
aurimas
3
130
柔軟なPDFレイアウトエディタを支える型システム設計 — Discriminated UnionとConditional Typeの実践
minako__ph
4
1.2k
Inspired By RubyKaigi (EN)
atzzcokek
0
460
Modding RubyKaigi for Myself
yui_knk
0
830
Why Laravel apps break—Mastering the fundamentals to keep them maintainable
kentaroutakeda
1
320
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
410
tsserverとは何だったのか、これからどうなるのか
nowaki28
1
430
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
240
次世代リンターで探る、tsgo 時代における型認識カスタムルールの現実解
ytakahashii
3
1.3k
ビジネスモデルから紐解く、AI+型駆動開発
hirokiomote
2
4.7k
Featured
See All Featured
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
190
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.5k
Everyday Curiosity
cassininazir
0
220
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Odyssey Design
rkendrick25
PRO
2
650
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
190
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.3k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
320
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
1
130
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
810
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
240
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