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
Test driven JavaScript
Search
Alexander Beletsky
November 17, 2012
Programming
900
3
Share
Test driven JavaScript
The slides from master class I did on XP Days 2012
Alexander Beletsky
November 17, 2012
More Decks by Alexander Beletsky
See All by Alexander Beletsky
Snapshot Testing: Going beyond UI
alexbeletsky
1
700
Tech Culture in Startups
alexbeletsky
0
250
TDD in JavaScript
alexbeletsky
4
860
This is Node.js
alexbeletsky
10
460
Likeastore
alexbeletsky
3
160
PaaS in your pocker with Dokku
alexbeletsky
7
2.6k
Building Single Page Applications
alexbeletsky
9
5.5k
.NET developer in JavaScript world
alexbeletsky
1
2.9k
How to write good tests?
alexbeletsky
2
340
Other Decks in Programming
See All in Programming
My daily life on Ruby
a_matsuda
3
430
OCRを使ってゲームのアイテムをデータ化する
kishikawakatsumi
0
110
ECR拡張スキャンでSBOMを収集して サプライチェーン攻撃の影響調査を 爆速で終わらせてみた
akihisaikeda
2
180
TSKaigi 2026 TypeScriptバックエンドのオブザーバビリティ戦略 — Datadog × NestJSの実践
taiseiyamamotoan
1
150
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
3
490
誰も頼んでない機能を出荷した話
zekutax
0
120
継続的な負荷検証を目指して
pyama86
3
1.4k
cloudnative conference 2026 flyle
azihsoyn
1
200
Are We Really Coding 10× Faster with AI?
kohzas
0
220
プロパティの順序で型推論が壊れる!? TypeScript6.0の修正からContext-Sensitivityの仕組みを追う
bicstone
2
860
AIチームを指揮するOSS「TAKT」活用術 / How to Use “TAKT,” an OSS Tool for Orchestrating AI Teams
nrslib
4
520
AI駆動開発で崩れていくコードベースを立て直す
kyoko_nr_nr
1
320
Featured
See All Featured
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
200
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.3k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
120
Embracing the Ebb and Flow
colly
88
5k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
Making the Leap to Tech Lead
cromwellryan
135
9.8k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
420
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
510
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Become a Pro
speakerdeck
PRO
31
5.9k
Transcript
TEST DRIVEN JAVASCRIPT Show & Talk
None
>5 years of programming C# for fun and profit
>5 years of practicing TDD
“No line of production code without unit test “ rule
that worked perfect for me during .NET programming
But it FAILED miserably that I started JavaScript programming
None
> Reason 1 JavaScript code seems to be small and
easy
> Reason 2 Leaving comfort zone is always hard
> Reason 3 DOM appears to be not testable at
first glance
None
Frameworks && Tools
qUnit, Jasmine, Mocha
Testing business logic
Testing UI/DOM code
Mocking/Spying on objects
Testing AJAX-dependent code
Continuous Testing with LiveReload
Final recommendations: 1. Don't be afraid to start testing. 2.
Baby steps practice works. 3. Use MV* frameworks.
Thanks, @alexbeletsky