mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
* Add API call for market inventory * changes to shop api calls * optimize shop categories * add API call for quests * add api call for time travelers shop * fic buying items in shops * fix linting errors * shop adjustments for iOS app * add tests to shops * fix syntax issues * Code formatting * correct indentation * add tests for api routes * fix time travelers and seasonal * Increase test coverage for shop routes * refactor: Pull out trinket count in time traveler route * refactor: Clarify instructions for seasonal shop script * lint: Remove extra new line * Adjust shops common test
How to run tests:
npm testis equivalent togulp test:api-v3which will run, in order,gulp lint,gulp test:api-v3:unitandgulp test:api-v3:integration. If one of these fails, the wholenpm testcommand blocks and fails. Each of these commands can also be run as a standalone command.- To run the server and the integrations tests in two different terminals (to better inspect the output in the server) run
npm startin one andnpm test:api-v3:integration:separate-serverin the other