QutEcoacoustics / workbench-client

workbench-client: a client side browser application for interacting with acoustic workbenches
Other
8 stars 1 forks source link

Add faking framework #77

Closed Allcharles closed 4 years ago

Allcharles commented 4 years ago

Use a faking framework to reduce the amount of hard-coded responses from the BAW server. This will reduce update times when changes are made to the BAW server and minimize unit test files. Potential framework: https://github.com/marak/faker.js

Allcharles commented 4 years ago

Related comment: https://github.com/QutEcoacoustics/workbench-client/pull/67#discussion_r368356888

Allcharles commented 4 years ago

Would be good to use this as well: https://github.com/json-schema-faker/json-schema-faker. It may be possible to create an attribute decorator to automate the process of generating fake models?