Skip to content

playing around with cypress + react + dom-testing-library

Notifications You must be signed in to change notification settings

alexkrolick/cypress-test

Repository files navigation

cypress-test

Playing around with Cypress, Jest's expect, and dom-testing-library

Progress

  • expect-compat:
    • merge Chai/Cypres and Jasmine/Jest assertions onto one expect
    • add jest-dom assertions like toHaveTextContent, toBeInTheDocument
  • index.spec.js:
    • use dom-testing-library inside Cypress without a plugin
    • trigger events with user-event

screen shot 2018-11-11 at 8 21 25 pm

screen shot 2018-11-11 at 8 30 59 pm

Weirdness

  • Asssertions from Jest don't show up in the result panel or trigger a DOM snapshot for debugging
  • Need to use done argument (legacy from Mocha) in async tests that have native Promise chains

About

playing around with cypress + react + dom-testing-library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published