From 51b7a7ed070ce1ebbf444aafcb5d77fb4d43db30 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 10 Jan 2023 15:15:11 +0100 Subject: [PATCH] changesets: added changesets for default implementations for test backend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Adelöw Co-authored-by: blam Co-authored-by: Johan Haals Signed-off-by: Patrik Oldsberg --- .changeset/proud-cobras-chew.md | 5 +++++ .changeset/shaggy-apricots-camp.md | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .changeset/proud-cobras-chew.md create mode 100644 .changeset/shaggy-apricots-camp.md diff --git a/.changeset/proud-cobras-chew.md b/.changeset/proud-cobras-chew.md new file mode 100644 index 0000000000..ae08378715 --- /dev/null +++ b/.changeset/proud-cobras-chew.md @@ -0,0 +1,5 @@ +--- +'@backstage/backend-test-utils': patch +--- + +The backend started by `startTestBackend` now has default implementations of all core services. It now also returns a `TestBackend` instance, which provides access to the underlying `server` that can be used with testing libraries such as `supertest`. diff --git a/.changeset/shaggy-apricots-camp.md b/.changeset/shaggy-apricots-camp.md new file mode 100644 index 0000000000..705dcef0f0 --- /dev/null +++ b/.changeset/shaggy-apricots-camp.md @@ -0,0 +1,5 @@ +--- +'@backstage/backend-app-api': patch +--- + +Exported the default root HTTP router implementation as `DefaultRootHttpRouter`. It only implements the routing layer and needs to be exposed via an HTTP server similar to the built-in setup in the `rootHttpRouterFactory`.