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
9
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smartthings/cli-testlib

SmartThings unified CLI testing utility methods library

Source
npmnpm
Version
0.0.0-pre.39
Version published
Weekly downloads
3
-81.25%
Maintainers
9
Weekly downloads
 
Created
Source

@smartthings/cli-testlib

A library to support testing the SmartThings CLI and plugins written for it with Jest.

Usage

Default Bootstrap

We provide a setup file which stubs out various init hook behavior (config loading, authentication, etc.) in the main CLI. This enables your test suite to start running commands quickly without worrying about these details.

  • Copy (and rename) jest.setup.ts.example to a desired location in your project root.
  • Edit your jest config to include setupFiles and specify the path to the previously copied setup file. See example jest config below.
module.exports = {
	setupFilesAfterEnv: [
		'<rootDir>/jest.setup.ts'
	],
}

FAQs

Package last updated on 18 Feb 2022

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