Closed Allcharles closed 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
Related comment: https://github.com/QutEcoacoustics/workbench-client/pull/67#discussion_r368356888
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?
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