Skip to content

Latest commit

 

History

History
 
 

prod-server-integration-tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

First off, you need to link @slack/* packages to ../packages/* to verify the latest revision's behavior.

./link-web-api.sh

If you would like to run scripts/socket-mode.js with the latest revision of code in this repo, run ./link-socket-mode.sh instead.

How to run tests

# with all of the bot scopes
export SLACK_SDK_TEST_BOT_TOKEN=xoxb-
# with all of the user scopes
export SLACK_SDK_TEST_USER_TOKEN=xoxp-
# admin user's token for a workspace in an Enterprise Grid org
export SLACK_SDK_TEST_GRID_WORKSPACE_ADMIN_USER_TOKEN=xoxp-
# org-level admin user's token
export SLACK_SDK_TEST_GRID_ORG_ADMIN_USER_TOKEN=xoxp-
# admin user's token for a secondary workspace in an Enterprise Grid org (must be in same org as workspace for SLACK_SDK_TEST_GRID_WORKSPACE_ADMIN_USER_TOKEN, but a different workspace) - required for admin.conversations.bulkMove test
export SLACK_SDK_TEST_GRID_SECONDARY_WORKSPACE_ID=T0123456789

npm test

How to run example scripts

# some examples may use different env variable names
export SLACK_BOT_TOKEN=xoxb-(your own token)
# Run the script
npx node scripts/pagination.js # or whatever you want to run