pulsar-edit / package-backend

Pulsar Server Backend for Packages
https://api.pulsar-edit.dev
MIT License
11 stars 11 forks source link

Refactor Tests #152

Closed confused-Techie closed 1 year ago

confused-Techie commented 1 year ago

Requirements

Description of the Change

This PR is finally my refactor of tests.

Nearly all static data returns have been removed, where now it's up to the individual tests to mock as needed, to allow our tests to much more closely represent the production environment. Ideally allowing us to catch errors earlier, and prevent more bugs.

Additionally, due to these changes dev mode has effectively been removed, to where now, other than support for disabling Google API calls, all other API calls will occur no matter if you are running the server in dev mode. This means largely there is no easy safe way to run the server in dev mode. It is instead recommended to rely more heavily on tests to ensure functionality as needed.