Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
/ mockserver-test Public archive

Example usage of mock-server with openApi.

Notifications You must be signed in to change notification settings

Meyclem/mockserver-test

Repository files navigation

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.