Automated Testing JavaScript
summary
Explains exactly how to get fast, reliable feedback: set up mocha and chai with karma to run tests in a browser, use a tiny canary test to verify tooling, stub external services with sinon so tests are idempotent, and prefer tests one layer below the UI following the test pyramid. Shows code coverage, a real divide() example and exception and performance tests, and recommends wiring the canary into continuous integration so failures surface immediately.
AI-written summary · about
chapters (16)
- 0:00Start
- 0:53Sustainable Agile Development
- 1:11Feedback Driven Development
- 2:02Programming Is the Best Job on Earth
- 2:25Feedback Loop
- 3:17Jesus Driven Development
- 10:01Test Pyramid
- 10:37Why Are We Running the Code at the Javascript Layer
- 14:24Setting Up a Project
- 23:47Continuous Feedback Loop
- 26:23Dividing a Number
- 27:44Four Types of Tests
- 28:05Negative Tests
- 29:16Performance Test
- 30:09Write an Exception Test
- 32:25Code Coverage
related talks
54mJavaScript Tests in Node, the Browser, and CI
42mSurviving the JS Testing Tools Jungle
25mMaking JavaScript Tests Fast, Easy, and Friendly
27mAutomated Testing for the Modern Web
48mit('should be easier') Automated testing in the real world
47mPractical Testing with JavaScript
50mTesting the MEAN Stack
37mTesting in the Node.js World
