Merge pull request #15530 from backstage/blam/add-mocks-test-backend

Add all `coreServices` to `startTestBackend`
This commit is contained in:
Ben Lambert
2023-01-12 14:20:51 +01:00
committed by GitHub
28 changed files with 466 additions and 106 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-tasks': patch
---
Added a new static `TaskScheduler.forPlugin` method.
+5
View File
@@ -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`.
+5
View File
@@ -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`.