Install the Node.js packages
$ npm installDeploy project
$ serverless deployDeploy a single function
$ serverless deploy function --function <function name>Run tests using
$ npm testRun a single test
$ serverless invoke local --function <function name> --path <api name>/mocks/<file name>.json --stage dev --region us-east-1Use Jest to run our tests. You can read more about setting up tests here.
--stage
We use ESLint to lint code via the serverless-bundle plugin.
Turn this off by adding the following to serverless.yml.
custom:
bundle:
linting: false