Giter Site home page Giter Site logo

webmasterdevlin / redux-toolkit-course Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 6.05 MB

React TypeScipt and Redux Toolkit implementation

License: MIT License

HTML 2.23% CSS 1.23% TypeScript 94.06% JavaScript 2.41% Shell 0.07%
react typescript redux redux-toolkit material-ui formik yup react-testing-library jest cypress

redux-toolkit-course's Introduction

Netlify Status

Redux Toolkit Course

$ git clone https://github.com/webmasterdevlin/redux-toolkit-course.git
$ cd redux-toolkit-course
$ npm install
$ npm run start:fullstack

The React app, and the fake web service will run concurrently.

screenshot

React Testing Library's best practices in writing tests

https://kentcdodds.com/blog/common-mistakes-with-react-testing-library

  • always use eslint-plugin-testing-library and eslint-plugin-jest-dom
  • always use screen
  • use screen.getByRole instead of screen.getByTestId
  • use screen.queryByRole only when expecting not.toBeInTheDocument
  • use await screen.find* instead of await waitFor/wait
  • if necessary, use await waitFor instead of await wait
  • use userEvent instead of fireEvent
  • don't use userEvent inside the callback of waitFor

Cypress' best practices in writing tests

https://docs.cypress.io/guides/references/best-practices.html

Application's styles

  • The application is using test ID instead of role when querying dom elements
  • Test IDs are simple and isolated

redux-toolkit-course's People

Contributors

webmasterdevlin avatar

Stargazers

Glenn Olazo avatar Taichi Tsujioka avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.