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
53
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
67
Other Decks in Programming
See All in Programming
Back to the Future: Let me tell you about the ACP protocol
terhechte
0
120
CSC509 Lecture 02
javiergs
PRO
0
400
詳しくない分野でのVibe Codingで困ったことと学び/vibe-coding-in-unfamiliar-area
shibayu36
3
2.9k
猫と暮らすネットワークカメラ生活🐈 ~Vision frameworkでペットを愛でよう~ / iOSDC Japan 2025
yutailang0119
0
210
あなたの知らない「動画広告」の世界 - iOSDC Japan 2025
ukitaka
0
340
パフォーマンスチューニングで Web 技術を深掘り直す
progfay
18
4.8k
XP, Testing and ninja testing ZOZ5
m_seki
2
220
大規模アプリにおけるXcode Previews実用化までの道のり
ikesyo
0
990
Swift Concurrency - 状態監視の罠
objectiveaudio
2
430
AIエージェント時代における TypeScriptスキーマ駆動開発の新たな役割
bicstone
4
1.3k
Web フロントエンドエンジニアに開かれる AI Agent プロダクト開発 - Vercel AI SDK を観察して AI Agent と仲良くなろう! #FEC余熱NIGHT
izumin5210
2
310
Conquering Massive Traffic Spikes in Ruby Applications with Pitchfork
riseshia
0
140
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
54
3k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
KATA
mclloyd
32
14k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
Building Adaptive Systems
keathley
43
2.8k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
Git: the NoSQL Database
bkeepers
PRO
431
66k
Code Review Best Practice
trishagee
72
19k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
114
20k
How STYLIGHT went responsive
nonsquared
100
5.8k
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