Migrate Enzyme tests eznyme.test.tsx to React Test Library react-testing-library.test.tsx
- Install Node.js v16.20.1. The particular version is required.
- Install yarn package manager.
- Install dependencies: run following command in a terminal from the project's root folder
yarn - Install project dependencies: run following command in a terminal from the project's root folder
yarn install - Smoke test: run application in development mode to make sure it renders a button and a toggle.
Open http://localhost:3000 to view it in the browser.
yarn start
The page will reload if you make edits.
You will also see any lint errors in the console.
yarn test-watch
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
yarn test -u
Launches the test runner with snapshots update