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
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
180
Patterns of Patterns
denyspoltorak
0
1.4k
高速開発のためのコード整理術
sutetotanuki
1
410
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
200
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
7.5k
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
120
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
720
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
270
今から始めるClaude Code超入門
448jp
8
9k
MDN Web Docs に日本語翻訳でコントリビュート
ohmori_yusuke
0
650
Basic Architectures
denyspoltorak
0
680
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
A Tale of Four Properties
chriscoyier
162
24k
Ethics towards AI in product and experience design
skipperchong
2
200
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
280
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
150
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
220
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
170
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
77
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.1k
Crafting Experiences
bethany
1
49
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
450
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
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