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
1
50
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
62
Other Decks in Programming
See All in Programming
Amazon CloudWatchの地味だけど強力な機能紹介!
itotsum
0
200
Browser and UI #2 HTML/ARIA
ken7253
2
160
SwiftUI API Design Lessons
niw
1
320
On-the-fly Suggestions of Rewriting Method Deprecations
ohbarye
1
4.1k
設計の本質:コード、システム、そして組織へ / The Essence of Design: To Code, Systems, and Organizations
nrslib
10
3.5k
RuboCop: Modularity and AST Insights
koic
2
2.1k
PHP で学ぶ OAuth 入門
azuki
1
220
AIコーディングの理想と現実
tomohisa
33
36k
Jakarta EE Meets AI
ivargrimstad
0
510
Cursor/Devin全社導入の理想と現実
saitoryc
27
20k
プロフェッショナルとしての成長「問題の深掘り」が導く真のスキルアップ / issue-analysis-and-skill-up
minodriven
8
1.8k
「影響が少ない」を自分の目でみてみる
o0h
PRO
2
1.2k
Featured
See All Featured
Faster Mobile Websites
deanohume
306
31k
StorybookのUI Testing Handbookを読んだ
zakiyama
29
5.7k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Site-Speed That Sticks
csswizardry
6
510
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.2k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.3k
A designer walks into a library…
pauljervisheath
205
24k
GraphQLの誤解/rethinking-graphql
sonatard
71
10k
Automating Front-end Workflow
addyosmani
1370
200k
A Tale of Four Properties
chriscoyier
158
23k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.8k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
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