To add a new package, run
yarn add packageName
yarn add packageName --dev
First, run the command:
yarn outdated
... to determine which packages may need upgrading.
We really should not upgrade all packages at once, but, one at a time and make darn sure to test.
To upgrade a single package named packageName
:
yarn upgrade packageName
Tests can be run via command line with yarn test
, from within the /ui
directory. For more detailed reporting, use yarn test -- --reporters=verbose
.
e2e tests:
For the end to end tests to run properly, the server needs to be running in the e2e testing mode with the in-memory data store.
From the influxdb directory:
$ ./bin/darwin/influxd --assets-path=ui/build --e2e-testing --store=memory
From the ui directory. Build the javascript with
$ yarn start
To run Cypress locally
$ yarn cy:dev
Running /ui
locally depends on monitor-ci
or k8s-idpe
.
Troubleshooting: If your Zuora form isn't rendering or calling your callback function which you passed in client.render
.
When running UI locally using Monitor CI, get Zuora PageID which you are using to render the form. Then, from Zuora admin console, get the Host
and Port
that PageID is corresponding to. Make sure to match those Host
and Port
with your INGRESS_HOST
and PORT_HTTPS
provided in the .env
file of monitor-ci
.