Skip to main content

When I ran a Jest test for a action that uses z.stashFile, I got an error message:

Error: No deploy key found. Make sure you set the `ZAPIER_DEPLOY_KEY` environment variable to write tests that rely on the RPC API (i.e. z.stashFile)

 

Where do I find or create this key?

Once I find this value, I can add it to the .env file, correct?

Hey @craibuc,

You can create a Deploy Key by following these steps:

  1. Visit https://developer.zapier.com
  2. Sign into your account
  3. Click your profile in the upper-right corner
  4. Click “Settings”
  5. Click “Deploy Keys” on the left
  6. Click to create a new key

Then, as you mentioned, you should be clear to add that key as an environment variable.

Hope this helps!


Found it.  Thank you.