Skip to content

aofleejay/sharing-react-redux-testing

Repository files navigation

React/Redux Testing

How to write test in React and Redux.

🎨 UI

UI

🚀 Quick start

  • Install dependencies

    yarn
    
  • Run test

    • Jest
    yarn test
    
    • Cypress
    yarn cy:open
    
  • View your site locally

    yarn develop
    

📝 Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[1.0.1] - 2020-03-17

Changed

  • Update all dependencies.
  • Use toEqual instead of snapshot testing for unit testing of actions, reducers and store to keep test code and result in same file.
  • Find element instead of snapshot testing to avoid fragile testing.
  • Test what user see e.g. find by text and click.
  • Add Cypress.

About

🏫 How to write a test in React and Redux with Jest

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy