Skip to content

Testing Library Koans: Learn frontend testing with practical exercises.

Notifications You must be signed in to change notification settings

Adriangar99/testing-library-koans

 
 

Repository files navigation

Testing Library Koans

Github Action Status

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.

Prerequisites

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.

Running

To run Testing Library Koans locally, follow these steps:

  1. Clone this repository to your local machine:
git clone [email protected]:DanielRamosAcosta/testing-library-koans.git
  1. Navigate to the cloned directory:
cd testing-library-koans
  1. Install the dependencies:
npm install
  1. Eject the boilerplate code:
npm run eject
  1. Start the koans:
npm test

This command will run the tests and guide you through each koan, providing valuable insights into Testing Library practices.

Contributing

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!

About

Testing Library Koans: Learn frontend testing with practical exercises.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 81.9%
  • CSS 8.7%
  • JavaScript 7.6%
  • HTML 1.8%