bahmutov / ejected-react-scripts-example

Component testing using cypress-react-unit-test and ejected react-scripts

Home Page:https://glebbahmutov.com/blog/my-vision-for-component-tests/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ejected-react-scripts-example

Component testing using cypress-react-unit-test and ejected react-scripts

This example repo was created with

npx create-react-app ejected-react-scripts-example
cd ejected-react-scripts-example
yarn eject

Then I have added Cypress and cypress-react-unit-test

yarn add -D cypress cypress-react-unit-test

The settings are in cypress.json, and we use settings for react scripts from cypress-react-unit-test recipes. Even with ejected react scripts!

The test src/App.spec.js is passing

Passing test

About

Component testing using cypress-react-unit-test and ejected react-scripts

https://glebbahmutov.com/blog/my-vision-for-component-tests/


Languages

Language:JavaScript 98.7%Language:CSS 1.3%