~/talk

Testing Angular 2

Talkat Angular Connect 2016 · 2016-09-27..09-28· [angular, testing]
links:none on file
slides:none on file

A compact, practical walkthrough of Angular 2 testing that builds a tic‑tac‑toe app and shows working examples: unit tests use TypeScript, Karma and Jasmine; dependency injection and mock providers are configured with TestBed; component tests compile templates, create a ComponentFixture, inspect native and DebugElements, and simulate clicks and keyboard events dispatched to window; asynchronous behavior uses zones so tests auto‑wait and also supports fakeAsync and tick for timeouts; Protractor E2E runs TypeScript specs with the allAngular2App flag.

AI-written summary · about

  1. 0:00Introduction to testing
  2. 1:00Tooling and setup
  3. 2:47Karma test runner
  4. 4:29Jasmine framework
  5. 5:10Modules and dependencies
  6. 7:13Test bed configuration
  7. 10:39Component testing basics
  8. 12:07Tic Tac Toe example app
  9. 14:02Testing business logic
  10. 16:52Template interaction tests
  11. 21:29Wrapper component testing
  12. 26:18Introduction to zones
  13. 30:04Zone task management
  14. 32:12Async and test zones
  15. 36:05Fake async utility
  16. 37:10Testing async components
  17. 39:29Testing NG model
  18. 40:53Future testing improvements
  19. 42:58End to end testing
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.