~/talk

Mocking made easy

Talkat AngularConnect 2019 · 2019-09-19..09-20· [angular, testing]
slides:none on file

A tiny mocking library called datamock replaces real endpoints by intercepting XHR/fetch/Axios, using a code-driven config and named scenarios so one can toggle between a default list-of-widgets and a “bad widget” with ID 101; demo shows adding widgets with delays and HTTP codes and the mocked flows working live. A Chrome extension enumerates scenarios. Known limitations include no network tab entries and missing GraphQL and schema validation.

AI-written summary · about

  1. 0:00Start
  2. 3:12Happy and unhappy paths
  3. 7:32Example: api-mocker
  4. 19:32What can data-mocks do for integration tests?
~/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.