Welcome to Testing Library Koans! This repository contains example exercises designed to train you on using the frontend Testing Library. Through these koans, you'll learn how to write tests that focus on queries and user actions, enhancing your understanding of Testing Library concepts.
Before getting started with Testing Library Koans, ensure you have the following prerequisites installed:
- Node.js: Make sure Node.js is installed on your machine. You can download it from nodejs.org.
- Package Manager: npm (comes with Node.js) or yarn.
- Code Editor: Choose a code editor or IDE of your preference. Some popular options include Visual Studio Code, Sublime Text, or Atom.
To run Testing Library Koans locally, follow these steps:
- Clone this repository to your local machine:
git clone [email protected]:DanielRamosAcosta/testing-library-koans.git
- Navigate to the cloned directory:
cd testing-library-koans
- Install the dependencies:
npm install
- Eject the boilerplate code:
npm run eject
- Start the koans:
npm test
This command will run the tests and guide you through each koan, providing valuable insights into Testing Library practices.
Contributions to Testing Library Koans are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request. Here are some guidelines to follow:
- Fork the repository and clone it to your local machine.
- Create a new branch for your changes:
git checkout -b feature/new-feature
- Make your modifications and ensure that the tests pass.
- Commit your changes with descriptive commit messages.
- Push your changes to your fork:
git push origin feature/new-feature
- Open a pull request against the main repository's
main
branch.
Thank you for contributing to Testing Library Koans and helping others learn frontend testing techniques!