smartagent-service-whatsapp
v1.0.0
Published
This repository is for functions related to WhatsApp
Downloads
1
Readme
SmartAgent Service WhatsApp
This repository is for functions related to WhatsApp
Deployment
This service is deployed using Launchpad
Environment variables
The environment variables needed for the deployment are region
(default value eu-west-2
) and stage
(default value dev
).
Branches
All new work to be done on a feature branch and merged into the development branch via a PR where at least one reviewer has approved it.
- Merging into the development branch will automatically start a build on the dev environment.
- Merging into the UAT branch will automatically start a build on the UAT environment.
- Merging work into the master branch will not start a build automatically. Go into launchpad and find smartagent-service-social for prod and press 'START BUILD'
Testing
This repo is using Jest for unit tests.
Each new endpoint/util function should be accompanied by a test file that will live in the __tests__
folder.
The tests for a given function should test every possible outcome of the function to make sure it behaves as expected.
When updating any function, make sure to update the corresponding tests for that function.
Unit tests will run in a bitbucket pipeline on every new pull request.
Scripts
npm run offline
- to run the service locally using serverless-offlinenpm run test
- to run jest unit testsnpm run check
- check files pass linting and prettier standard