~/talk

Enzyme/Jest React Components Testing by Hayk Barseghyan (Arm) | JSConfAM19

Talkat JS Conf Armenia 2019 · on Saturday, 2019-11-30· [testing, react]
slides:none on file

Shows concrete test code: uses Enzyme + Jest to run shallow/mount/render experiments, exercises event simulation and snapshot assertions, and mocks dispatches and external services to isolate components. Builds and runs tests for a login form, image rendering, animated state, and async submit flows with beforeEach/afterEach setup and fake timers. Demonstrates brittle snapshots and fixes by preferring data-test selectors and small helper wrappers to mount with providers so tests stay deterministic.

AI-written summary · about

  1. 0:00React component testing intro
  2. 3:07Setup Enzyme and Jest
  3. 10:59First component test
  4. 17:46Test interactions and state
  5. 23:49Snapshot testing edge cases
  6. 28:24Simulate user actions forms
  7. 31:19Q&A
~/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.