@backstage/backend-test-utils
Home > @backstage/backend-test-utils
Test helpers library for Backstage backends
Classes
|
Class |
Description |
|---|---|
|
A utility to help test service factories in isolation. | |
|
Encapsulates the creation of ephemeral test cache instances for use inside unit or integration tests. | |
|
Encapsulates the creation of ephemeral test database instances for use inside unit or integration tests. |
Functions
|
Function |
Description |
|---|---|
|
Creates a new temporary mock directory that will be removed after the tests have completed. | |
|
A mock for error handler middleware that can be used in router tests. | |
|
Sets up handlers for request mocking | |
Interfaces
|
Interface |
Description |
|---|---|
|
Options for createMockDirectory(). | |
|
A utility for creating a mock directory that is automatically cleaned up. | |
|
A context that allows for more advanced file system operations when writing mock directory content. | |
|
Options for MockDirectory.content(). | |
|
Options for ServiceFactoryTester. | |
Namespaces
|
Namespace |
Description |
|---|---|
|
Mock implementations of the core services, to be used in tests. |
Type Aliases
|
Type Alias |
Description |
|---|---|
|
The content of a mock directory represented by a nested object structure. | |
|
A callback that allows for more advanced file system operations when writing mock directory content. | |
|
The possible caches to test against. | |
|
The possible databases to test against. |