Install the Node.js packages
$ npm install
Deploy project
$ serverless deploy
Deploy a single function
$ serverless deploy function --function <function name>
Run tests using
$ npm test
Run a single test
$ serverless invoke local --function <function name> --path <api name>/mocks/<file name>.json --stage dev --region us-east-1
Use 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