Something like https://httpstat.us/ but for API endpoints?
Is there a dummy API for testing/practice?
Discord sandbox for testing bots
Mock Hasura endpoint for unit testing
I'm afraid I don't know of any approach that does not involve some amount of elbow grease.
Setting up hasura and postgres instances as part of test execution pipeline is exactly how the integration test suite of Hasura itself works.
Whether it'll work for you depends on what trade-offs you're willing to make and what you want to get out of your test suite.
If you just want to run your unit tests in CI, I'd suggest you start a single hasura instance and postgres instance via e.g. docker containers and then reset their state data between each test. This doesn't let you run tests in parallel, but it does let you pay the cost of instance startup and initialization only once. This is more or less what Hasura's own test suite does.
If your test execution is more resource constrained (either in terms of computational resources or time in a dev feedback loop, etc.) and your tests are deterministic, you could try using contract testing in your test harness (https://pactflow.io/blog/what-is-contract-testing/). Then you'll only need to have a hasura instance in the loop when you introduce new tests or update existning ones.
More on reddit.com