The document discusses best practices for JavaScript testing. It lists 8 best practices: 1) Create testable code 2) Find a good testing framework 3) Test against real HTML 4) Test against real data 5) Use continuous integration 6) Enable in-browser debugging 7) Enable automated cross-browser testing 8) Enforce red, green, refactor. It then provides examples of testing code against real HTML and data as well as testing across browsers to catch differences in behavior.
Related topics: