The happy path
If the testData
argument is empty, the default Happy Path will be performed. This is configured in a userData.json
file in the shared-data
folder. The two milestones include HostOrAttend
and location
:
} "journeyData": { "_hostOrAttend_comment": "'host' (default Happy Path), 'attend' or 'scared' ", "hostOrAttend: "host", "_location_comment": "'zombieton' (default Happy Path) or 'ghostville' ", "location": "zombieton", } }
Rule of thumb – documenting JSON files
No developer worth their salt would ever design a data file without some documentation close at hand. However, JSON files do not allow for comments, as we can do in JavaScript files with double forward slashes (//
). The workaround is to add a matching...