Test helpers library for Backstage backends.
Add the library as a devDependency to your backend package:
# From your Backstage root directory, go to your backend package, or to a backend plugin
cd plugins/my-plugin-backend
yarn add --dev @backstage/backend-test-utils
BACKSTAGE_TEST_DISABLE_DOCKER
1 disables Docker for testsCI
1 enables long-running tests, including the ones utilizing DockerBACKSTAGE_TEST_DOCKER_REGISTRY
mycompany.docker.io/mirrorDOCKER_AUTH_CONFIG)Connection strings for different databases that are used for testing. The value of the string should point to the running instance of the database.
BACKSTAGE_TEST_DATABASE_POSTGRES13_CONNECTION_STRINGBACKSTAGE_TEST_DATABASE_POSTGRES12_CONNECTION_STRINGBACKSTAGE_TEST_DATABASE_POSTGRES11_CONNECTION_STRINGBACKSTAGE_TEST_DATABASE_POSTGRES9_CONNECTION_STRINGBACKSTAGE_TEST_DATABASE_MYSQL8_CONNECTION_STRING