← 返回命令列表

Linux command

zapier-test 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run all tests

zapier test

Run tests matching a pattern

zapier test --grep "[pattern]"

Run with a custom timeout

zapier test --timeout [5000]

Run with environment variables

CLIENT_ID=[1234] CLIENT_SECRET=[abcd] zapier test

说明

zapier test runs the integration tests defined in the test directory using the Mocha test runner. It sets up the Zapier test environment with extra variables compared to running `npm test` directly. Use it to validate triggers, actions, and authentication before deploying your integration.

参数

--grep _pattern_
Run only tests matching the given pattern.
--timeout _ms_
Test timeout in milliseconds.

FAQ

What is the zapier-test command used for?

zapier test runs the integration tests defined in the test directory using the Mocha test runner. It sets up the Zapier test environment with extra variables compared to running `npm test` directly. Use it to validate triggers, actions, and authentication before deploying your integration.

How do I run a basic zapier-test example?

Run `zapier test` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --grep _pattern_ do in zapier-test?

Run only tests matching the given pattern.