Community Health Toolkit

Unable to loadform from harness.defaults.json

Unit tests failing at loadForm as its unable to get the details from harness.defaults.json.

In harness.defaults.json. added new household person details.
Failing at await harness.loadForm(‘pregnancy-registration/Form name’);

The loadForm interface expects to recieve the “Filename of an app xml file”. So in this case, I think you just want loadForm('pregnancy-registration'). This assumes you have a file in forms/app/pregnancy-registration.xlsx and forms/app/pregnancy-registration.xml.

1 Like