New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@smartthings/cli-testlib

Package Overview
Dependencies
Maintainers
8
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smartthings/cli-testlib

SmartThings CLI testing utility methods library

latest
Source
npmnpm
Version
2.0.8
Version published
Maintainers
8
Created
Source

@smartthings/cli-testlib

A library to support testing the SmartThings CLI and plugins written for it with Jest. It provides a setup file which stubs out various behavior (config loading, authentication, etc.) in the main CLI. This enables your test suite to start running commands quickly without worrying about these details.

Installation

npm i @smartthings/cli-testlib --save-dev

Usage

Edit your jest config to include setupFilesAfterEnv and specify it as shown.

module.exports = {
  setupFilesAfterEnv: ['@smartthings/cli-testlib'],
}

You can also extend/override the default setup script with one of your own as needed. (TODO: this may be required in some cases)

module.exports = {
	setupFilesAfterEnv: [
		'@smartthings/cli-testlib',
		'<rootDir>/jest.setup.ts'
	],
}

FAQs

Package last updated on 18 Mar 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