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
55
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
68
Other Decks in Programming
See All in Programming
CSC305 Lecture 09
javiergs
PRO
0
320
TransformerからMCPまで(現代AIを理解するための羅針盤)
mickey_kubo
7
5.5k
登壇は dynamic! な営みである / speech is dynamic
da1chi
0
360
Temporal Knowledge Graphで作る! 時間変化するナレッジを扱うAI Agentの世界
po3rin
1
170
理論と実務のギャップを超える
eycjur
0
180
Server Side Kotlin Meetup vol.16: 内部動作を理解して ハイパフォーマンスなサーバサイド Kotlin アプリケーションを書こう
ternbusty
3
260
CSC305 Lecture 10
javiergs
PRO
0
280
スマホから Youtube Shortsを見られないようにする
lemolatoon
27
34k
contribution to astral-sh/uv
shunsock
0
550
社会人になっても趣味開発を続けたい! / traPavilion
mazrean
1
110
TFLintカスタムプラグインで始める Terraformコード品質管理
bells17
2
460
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
510
Featured
See All Featured
Building an army of robots
kneath
305
46k
Keith and Marios Guide to Fast Websites
keithpitt
411
23k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Scaling GitHub
holman
463
140k
RailsConf 2023
tenderlove
30
1.3k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
36
6.1k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
Java REST API Framework Comparison - PWX 2021
mraible
34
8.9k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.2k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
10
890
Understanding Cognitive Biases in Performance Measurement
bluesmoon
31
2.7k
Building Better People: How to give real-time feedback that sticks.
wjessup
369
20k
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