~/talk

How to Start Unit-testing

TalkinRussianat JS Conf Armenia 2017 · on Saturday, 2017-12-09· [testing]
links:none on file
slides:none on file

Shows how to begin unit testing JavaScript using the Mocha test framework, running tests in the console and using assertion libraries to check behavior. Recommends starting by writing tests for existing code before moving to TDD, and moving UI behavior into plain data structures so tests compare arrays/objects rather than the DOM; demonstrates the approach with a button-panel example to make tests simple, fast, and reliable.

AI-written summary · about

  1. 0:00Introduction
  2. 4:03What testing is and why
  3. 6:31Testing types and levels
  4. 9:00JavaScript test basics
  5. 12:17Test file structure
  6. 15:32Running tests
  7. 18:25Mocha framework
  8. 24:28How to test code
  9. 25:31TDD approach
  10. 32:14Testing tips
  11. 38:41Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.