admin-panel-template-reactjs icon indicating copy to clipboard operation
admin-panel-template-reactjs copied to clipboard

Tests

Open themitvp opened this issue 5 years ago • 1 comments

  • [ ] React testing library
  • [ ] UI Snapshot testing

themitvp avatar Sep 17 '20 11:09 themitvp

About test library, here is an article that they suggest to use https://www.npmjs.com/package/@testing-library/react.

Why Enzyme should be deprecated?
There are a couple of reasons that can be summarized in a few bullets:

It has a long record of falling behind changes in React, preventing people from transitioning to newer React versions
It relies on React internal implementation, and React team discourages using it
It is currently maintained by single person – and it's risky for so many companies to rely on a single person to maintain one of their crucial pieces of software
It facilitates some bad testing practices, and tests in Enzyme don't represent customer experience
There's a far better solution in the market, and the industry has already moved on

https://www.piotrstaniow.pl/goodbye-enzyme

zhumeisongsong avatar Jul 28 '21 03:07 zhumeisongsong