Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@backstage/backend-test-utils

Package Overview
Dependencies
Maintainers
0
Versions
1139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backstage/backend-test-utils

Test helpers library for Backstage backends

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
38K
increased by20.29%
Maintainers
0
Weekly downloads
 
Created
Source

@backstage/backend-test-utils

Test helpers library for Backstage backends.

Usage

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

Environment variables

  • BACKSTAGE_TEST_DISABLE_DOCKER
    • Setting the value to 1 disables Docker for tests
  • CI
    • Setting the value to 1 enables long-running tests, including the ones utilizing Docker
  • BACKSTAGE_TEST_DOCKER_REGISTRY
    • Docker registry mirror address where to pull images for tests, for example mycompany.docker.io/mirror
    • See documentation for information about authentication (DOCKER_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_STRING
  • BACKSTAGE_TEST_DATABASE_POSTGRES12_CONNECTION_STRING
  • BACKSTAGE_TEST_DATABASE_POSTGRES11_CONNECTION_STRING
  • BACKSTAGE_TEST_DATABASE_POSTGRES9_CONNECTION_STRING
  • BACKSTAGE_TEST_DATABASE_MYSQL8_CONNECTION_STRING

Documentation

Keywords

FAQs

Package last updated on 19 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc