Meyclem / mockserver-test

Example usage of mock-server with openApi.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MockServer test app

Usage

Installation

asdf install
yarn install

Mock server

To start the mock server, use:

yarn start:mockserver

It will be available on http://localhost:4010

Openapi client

There's already a generated openapi client, located in /connect-profile-client but you can generate a new one if needed with:

yarn generate-connect-profile-client

Examples

You can check the test suite in ./test/mock-server.test.ts.

You can also run it:

yarn test

Note that you need to have the mock server running to launch tests.

About

Example usage of mock-server with openApi.


Languages

Language:TypeScript 97.5%Language:Shell 2.3%Language:JavaScript 0.2%