router icon indicating copy to clipboard operation
router copied to clipboard

Use new subgraph mocking functionality for canned test supergraph

Open goto-bus-stop opened this issue 5 months ago • 1 comments

Many of our tests use a simple "canned" default schema. This PR replaces the hardcoded query/response mocks with the new subgraph mocking functionality that uses a GraphQL execution engine for that schema.

This is more future-proof in case query plans change in benign ways.

Additionally:

  • axum_factory::tests::defer_is_not_buffered was using a query that didn't have existing mocks, but now it works
  • Some studio metrics tests were using a query that didn't have existing mocks, so they were always reporting has_errors: true, now it works

goto-bus-stop avatar Jun 17 '25 10:06 goto-bus-stop

@goto-bus-stop, please consider creating a changeset entry in /.changesets/. These instructions describe the process and tooling.

github-actions[bot] avatar Jun 17 '25 10:06 github-actions[bot]

✅ Docs preview has no changes

The preview was not built because there were no changes.

Build ID: e8e812a3289c21d20b1c8e9c

apollo-librarian[bot] avatar Jul 03 '25 06:07 apollo-librarian[bot]