Test Harness
How to develop within the DIGIDECK Test Harness
Local development is made easy with the DIGIDECK Test Harness and the ddcomponents CLI.
-
If you have not yet, first follow the instructions in Get Started.
-
Install localhost SSL certificates installed, if not done already.
ddcomp install
This command uses Homebrew to install mkcert package. If you are using Windows you must install mkcert with chocalatey first!
choco install mkcert
-
Open a terminal at the root of your Component Project.
-
Build, serve and open Test Harness in one command.
npm start
or
ddcomp serve
- Test Harness should automatically open in your default browser. If not, you can navigate to the test harness at:
https://app.platform.sportsdigita.com/test-harness/nodeName/<node-name>/organization/<organization-id>
NOTE: SSL certificate does not work in Mozilla Firefox. Please use Chrome/Edge/Safari.
NOTE: This change in Chrome 142 disallows localhost outside requests from the presentation/angular. Because of this, if you are on chrome 142 or above, you will receive CORS errors and not be able to properly run the test harness.
To fix this, you must disable this flag in Chrome: chrome://flags/#local-network-access-check while working in the test harness.
Using a custom port
Set testHarnessOptions.port in your component.config.json to the desired port number and start the test harness.