0.1.4 • Published 1 year ago

@slack/slack-cli-test-utils v0.1.4

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

slack-cli-integration-test

Setup

Ensure that you have your Slack CLI binary that you wish to test setup on the machine you ae running the tests on.

To run these tests using a local CLI build from main, symlinking:

rm /usr/local/bin/<BIN_NAME> && ln -s /<PATH>/<TO>/<YOUR>/<LOCAL>/<BIN> /usr/local/bin/<BIN_NAME>

Then create a file called .env in the project to hold environment variables. Add SLACK_CLI_PATH to this file to configure the name of your local Slack CLI binary that tests will use. See .env.sample for an example.

Usage

src/runner/testRunner.ts is used to to set up environment variables an start tests.