Coder Social home page Coder Social logo

mattagn / formationtests Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 0.0 17.3 MB

Project for a formation at BAM on integration tests with react-native-testing-library

JavaScript 9.39% TypeScript 57.71% Python 6.18% Java 5.75% Objective-C 13.33% Ruby 7.64%

formationtests's Introduction

The app

It is a single screen app where you can enter an email to subscribe to a newsletter. If you enter a valid email, you have a success message but if your email is badly formatted, you'll receive an error message. For simplicity's sake, the api used does not really subscribe you to any newsletter, it only checks whether the email given is valid or not.

Architecture of the project

This project contains two different versions of the same app :

  • a basic version : using nothing but internal state and basic components
  • a complex version : using formik, redux and sagas

To switch versions, go to the index and use the App component corresponding to the version you want to use

Install the app

Clone the repo and then, at its root, run yarn or npm i

Then open up a simulator or connect a real device and run react-native-run-ios or react-native-run-android

Tests

Write the first test

Go to this file and follow this article

Run the tests

Just run yarn jest. You can add --coverage to find out how much code the tests cover

formationtests's People

Contributors

mattagn avatar

Stargazers

Roman avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.