Skip to content

ImVictorM/Testing-Using-ReactJS

Repository files navigation

Testing-Using-ReactJS 🚧

Project Context 💡

In this project, I had to write tests for a React application that was already created and configured using Jest and React Testing Library (RTL). The application contains a complete implementation of a Pokédex. My job was to write tests that ensured their correctness. The tests are in path src/tests.

Acquired Knowledge 📖

In this project, i was able to:

  • Use React-Testing-Library selectors (queries) in automated tests;
  • Simulate events with React-Testing-Library in automated tests;
  • Testing asynchronous logic flows with the React-Testing-Library;
  • Write tests that cause the structure of application components to be refactored without having to change them;
  • Inputs Test.

Used Technologies 🧰

Jest RTL
jest rtl

Running the application ⚙️

  1. Clone and enter this repository
git clone git@github.com:ImVictorM/Testing-Using-ReactJS.git && cd Testing-Using-ReactJS
  1. Install the dependencies
npm install 
  1. Start the project
npm start

Testing 🛠️

Running all tests:

npm test

Running a specific test:

npm test {test_file_name}

About

Testing a finished application 👷

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •