Socket
Book a DemoInstallSign in
Socket

@launchdarkly/jest

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@launchdarkly/jest

Easily unit test LaunchDarkly feature flagged components with jest

latest
Source
npmnpm
Version
0.1.12
Version published
Maintainers
1
Created
Source

LaunchDarkly Jest

NPM Actions Status Documentation NPM NPM

[!CAUTION] This library is a beta version and should not be considered ready for production use while this message is visible.

Easily unit test LaunchDarkly applications with jest :clap:

For more information, see the complete reference guide for unit testing.

Installation

# npm
npm i @launchdarkly/jest --save-dev

# yarn
yarn add -D @launchdarkly/jest

Then in jest.config.js add @launchdarkly/jest/{framework} to setupFiles:

// jest.config.js
module.exports = {
  // for react
  setupFiles: ['@launchdarkly/jest/react'],

  // for react-native
  setupFiles: ['@launchdarkly/jest/react-native'],
};

Quickstart

TODO:

Developing this package

# at js-core repo root
yarn && yarn build && cd packages/tooling/jest

# run tests
yarn test

Verifying SDK build provenance with the SLSA framework

LaunchDarkly uses the SLSA framework (Supply-chain Levels for Software Artifacts) to help developers make their supply chain more secure by ensuring the authenticity and build integrity of our published SDK packages. To learn more, see the provenance guide.

About LaunchDarkly

  • LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard. With LaunchDarkly, you can:
    • Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.
    • Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
    • Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
    • Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan).
    • Disable parts of your application to facilitate maintenance, without taking everything offline.
  • LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Read our documentation for a complete list.
  • Explore LaunchDarkly

Keywords

launchdarkly

FAQs

Package last updated on 03 Nov 2025

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