Giter Site home page Giter Site logo

cezarvaz / serve-rest-api-tests Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.36 MB

This repository contains the code for an automated testing suite using Jest with SuperTest and AJV for the API hosted in https://serverest.dev/#/.

Home Page: https://serverest.dev/#/

Shell 0.42% JavaScript 99.58%
ajv jest jest-tests supertest api-testing test test-automation testing

serve-rest-api-tests's Introduction

serve-rest-api-tests

This repository contains the code for an automated testing suite using Jest with SuperTest and AJV for the API hosted in https://serverest.dev/#/. This README will guide you through the project setup and how to use the provided NPM scripts.

Prerequisites

Before you get started, make sure you have the following software installed on your machine:

Getting Started

  1. Clone this repository to your local machine:

    git clone https://github.com/cezarvaz/serve-rest-api-tests.git
    cd serve-rest-api-tests
  2. Install project dependencies:

    npm install

Available Scripts

In this project, you can use the following NPM scripts to perform various tasks:

1. Linting

You can use ESLint to check and automatically fix coding style issues in your code.

npm run lint

2. Preparing Husky

Husky is a tool that enables Git hooks. You need to install it using the following command:

npm run prepare

This will set up Git hooks to run actions like linting and testing before committing or pushing code.

3. Running Tests

To run all the tests, use the following command:

npm test

This script will execute your test suite and report the results in the terminal.

serve-rest-api-tests's People

Contributors

cezarvaz avatar

Watchers

 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.