Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.08 KB

File metadata and controls

50 lines (31 loc) · 1.08 KB

☀️ Component Testing

📚 You will learn

  • set up React component testing
  • write simple tests
  • run tests on CI

📝 How Cypress Component Testing Was Born

+++

$ npx degit bahmutov/the-fuzzy-line#workshop
$ cd the-fuzzy-line
$ npm install

+++

Setup

Setup component testing

+++

There are several component testing placeholders in src folder

  • ⌨️ src/components/Numbers.cy.js
  • ⌨️ src/components/Difficulty.cy.js
  • ⌨️ src/components/Overlay.cy.js

Tip: read https://on.cypress.io/component-testing


📝 Take away

  • Mount the component and use it as E2E web app

More information

➡️ Pick the next section or jump to the end chapter