Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 669 Bytes

DEVELOPING.md

File metadata and controls

26 lines (18 loc) · 669 Bytes

Development Guide

OpenAPI Code Generation

Much of the code in this project is generated by the OpenAPI generator. Regenerating the generated portions of the codebase can be done simply with this command (run this whenever new features / changes to the OpenAPI spec are released).

openapi-generator generate -i https://api.stadiamaps.com/openapi.yaml -g typescript-fetch --strict-spec true -o .

Unit Tests

The project includes some unit tests as a sanity check, utilizing mocks and real API responses. The test suites are specified using Jest and are fairly straightforward.

npm run test

Dist build

npm run build