Giter VIP home page Giter VIP logo

pizza-testing's Introduction

Order pizza app

This project is about practising Jest / Enzyme testing with React. I've also made a nodeJS Express testing examples with Jest.

Features

  • Login (check the last orders , change password) // not implemented
  • Register // not implemented
  • Order without registration // not implemented
  • See all of the selected pizzas in the basket

Available Scripts

In the project directory, you can run:

npm start

Runs the Front-end app in the development mode.
Open http://localhost:3000 to view it in the browser.

To run the back-end server navigate to /server folder. You need to install the deppendencies: npm install

After that just start the server: node server

npm test

This command will run all Front-end tests.

Jest is giving you the ability to write following type of tests:

  • Snapshoot testing (creates snapshoot file and compare it )
  • DOM Testing ( we need to use Enzyme )

You will be also able to create own transformers.

Jest can be used for Express / nodeJs Apps for testing. To run the routes tests, the server should be started and the folloing command should be executed: npx jest server.test

npm run build

Builds the app for production to the build folder.

If you want to serve the production bundle from the server you need to make a static serving on the server and to navigate the root / path to /index.html file located in the build folder;

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.