- Install NPM packages
npm installRun the app on dev mode
npm startLaunches the Jest test runner in the interactive watch mode.
npm testLaunches the Cypress test runner. Cypress requires you to run npm start in parallel.
npm run cypressLaunches the Cypress smoke tests:
npm run cypress:smokeTo get holderChangePersonaldata.js:
cd cypress/fixtures/
ln -s ../../../testdata/b2bs/holderChangePersonaldata.json .To get .env.development:
ln -s $myit-docs_dir/it-docs/conf/webforms-ui/.env.developmentWe should have testdata repo!
To deploy we have to use deploy.sh
scripts/deploy.sh [env]
If you want to deploy to the web:
scripts/deploy.sh pre
This command uses deploy-pre.conf. It is now defined with the test web configuration.
If you want to deploy to the OV:
scripts/deploy.sh ovtest [vassal number]
This command uses deploy-ovtest.conf. It is now defined with the test OV configuration.
If you want to deploy to the web:
scripts/deploy.sh production
This command uses deploy-production.conf. It is now defined with the production web configuration.
If you want to deploy to the OV:
scripts/deploy.sh ovprod
This command uses deploy-ovprod.conf. It is now defined with the production OV configuration.
For the first time you should create the folder builds at the root of the projects.
If you want to deploy local:
scripts/deploy-local.sh
This command uses deploy-ovlocal.conf. It is now defined with the local OV configuration.
Thing to keep in mind:
- Follow the setup to create the necessary directories
- This script must be run from its directory