Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.

testing-library/native-testing-library-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

78 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

⚠️ Deprecation notice ⚠️

This repository has been deprecated in favor of https://github.com/callstack/react-native-testing-library and the @testing-library/react-native npm package will from now on (since v7.0) will be sourced from there. Please consult the migration guide.

React Native Testing Library Docs

whale

Simple and complete React Native testing utilities that encourage good testing practices.

Read The Docs


Netlify Status version downloads MIT License

All Contributors PRs Welcome Code of Conduct Discord

Watch on GitHub Star on GitHub

Guiding Principles

The more your tests resemble the way your software is used, the more confidence they can give you.

We try to only expose methods and utilities that encourage you to write tests that closely resemble how your apps are used.

Utilities are included in this project based on the following guiding principles:

  1. If it relates to rendering components, it deals with native views rather than component instances, nor should it encourage dealing with component instances.
  2. It should be generally useful for testing the application components in the way the user would use it. We are making some trade-offs here because we're using a computer and often a simulated environment, but in general, utilities should encourage tests that use the components the way they're intended to be used.
  3. Utility implementations and APIs should be simple and flexible.

In summary, we believe in the principles of testing-library, and adhere to them as closely as possible. At the end of the day, what we want is for this library to be pretty light-weight, simple, and understandable.

Contributors

Thanks goes to these wonderful people (emoji key):


Brandon Carroll

πŸ’» πŸ–‹ πŸ“– 🎨

Jean-Marie Porchet

πŸ“–

Santi

πŸ“–

Ely Alvarado

πŸ“–

Javier Alvarez

πŸ“–

Matt Wood

πŸ“–

Jeremy Davis

πŸ“–

MoeSauber

πŸ“–

Hans Hoffman

πŸ“–

Luca Barone

πŸ“–

Louis H

πŸ“–

This project follows the all-contributors specification. Contributions of any kind welcome!