development
Deploy/Publish Elevate
Development
Every change merged into the main
branch will be deployed automatically DroneCI+ArgoCD+EKS in Elevate CI to check the latest changes.
Production
There is non-actual production environment, but every version of the application is deployed in EKS Elevate. This is a manual process that requires two steps:
- Create a commit/PR with the
npm version
executed to the main branch (currentlymain
) - Execute the jenkins task Build Elevate
Update Documentation
The Elevate documentation is deployed in Elevate Doc EKS environment. The Elevate JSDoc is deployed in Elevate JSDoc EKS environment. The Elevate Storybook stories are deployed in Elevate Storybook EKS environment.
All of this process are launched together with the Production deployment in Build Elevate Jenkins task
Run Tests
We have chosen Jest as our unit testing frameworks.
As a convention, Jest will automatically pick tests inside **/__tests__/**
directories.
Run your tests:
npm test
This way, Jest will be running in watch mode, re-running test for the files that are modified.
If you only want to run your test suite once, e.g. from Jenkins, you can do this with the following command:
npm run test:once