Skip to content

assertServerless

assertServerless(testing, env?): string | undefined

Defined in: packages/core/src/serverless.ts:26

Boot check for testing on a serverless host. Returns a warning to log, or undefined when there is nothing to say; throws on AWS Lambda. Does nothing without testing, or when STORYSHELF_ALLOW_SERVERLESS=1.

boolean

ProcessEnv = process.env

string | undefined