Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@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.41
Version published
Weekly downloads
3
-97.09%
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 07 Mar 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