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
TDD in JavaScript
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Alexander Beletsky
July 15, 2014
Programming
860
4
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
TDD in JavaScript
The slides I use for introduction to TDD course.
Alexander Beletsky
July 15, 2014
More Decks by Alexander Beletsky
See All by Alexander Beletsky
Snapshot Testing: Going beyond UI
alexbeletsky
1
710
Tech Culture in Startups
alexbeletsky
0
250
This is Node.js
alexbeletsky
10
470
Likeastore
alexbeletsky
3
170
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
Dynamic web development with Oak
alexbeletsky
1
650
Other Decks in Programming
See All in Programming
ECSアプリログをFireLensでコスト削減しようとしたけど諦めた話 in Fargate×Node.js
akihisaikeda
2
4.2k
エンジニア向け会社紹介/Findy Company Profile
findyinc
6
350k
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
0
290
Datadog × OpenTelemetry 入門と実践のあいだ
kn_to_maxpno
1
180
Hatena Engineer Seminar #37「言語モデルの活用に関する研究」
slashnephy
0
350
Mujeres en SEO Summit 2026 - Greatest Disaster Hits en Web Performance
guaca
0
210
ふつうのFeature Flag実践入門
irof
8
4.2k
Javaの型とAI時代に型が大事な理由 / java types and type in AI era
kishida
2
150
A2UI という光を覗いてみる
satohjohn
1
160
エンジニアと一緒にテストコードの設計と実装を改善した話
mototakatsu
0
230
OSもどきOS
arkw
0
600
過去最大のMCPアップデート! 2026-07-28 RC版の謎に迫る
licux
6
420
Featured
See All Featured
AI: The stuff that nobody shows you
jnunemaker
PRO
8
740
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
870
Abbi's Birthday
coloredviolet
3
8.3k
Unsuck your backbone
ammeep
672
58k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
620
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
200
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
150
Paper Plane (Part 1)
katiecoart
PRO
0
9.3k
Ethics towards AI in product and experience design
skipperchong
2
320
Claude Code のすすめ
schroneko
67
230k
Deep Space Network (abreviated)
tonyrice
0
220
My Coaching Mixtape
mlcsv
0
160
Transcript
Test Driven .JS
[email protected]
http://beletsky.net http://twitter.com/alexbeletsky
What are we going to do?
What are we going to do? • prepare the environment
What are we going to do? • prepare the environment
• have TDD intro
What are we going to do? • prepare the environment
• have TDD intro • practice the basic skills
What are we going to do? • prepare the environment
• have TDD intro • practice the basic skills • discuss and have fun!
Development environment • node.js (npm) ~ 0.10.x • git ~
1.8.x • Chrome / Firefox / IE • Sublime Text (Web Storm, Notepad)
What the heck is TDD?
None
The Three Laws of TDD • No production code without
test • No more unit test sufficient to fall • No more production code sufficient to pass
But Why?
Less bugs, more speed
Regression stability
Safe(r) refactoring
Test Driven Design
Team / Code culture
FUN :)
TDD is all about discipline
:shu :ha :ri
Let’s get STARTED..