Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@medic/contact-summary-testing
Advanced tools
Contact Summary test will load your contact-settings.js or contact-summary-templated.js. Then it will loop through the folders in your contact summary json exmaple folders. Then execute your contact.json, lineage.json, and reports.json against the contac
Contact Summary test will load your contact-settings.js or contact-summary-templated.js. Then it will loop through the folders in your contact summary json exmaple folders. Then execute your contact.json, lineage.json, and reports.json against the contact-summary. This returns an output json which is then compared against the expected.json in your test folders.
medic-contact-summary-test path_to_contact-summary.js path_to_tests_contact_summary_json
medic-contact-summary-test medic-webapp/tree/master/config/standard medic-webapp/tree/master/config/standard/tests/contact-summary
The json files need to be in this directory structure to be looped over and tested against the contact-summary that gets loaded.
NOTE: Lineage and reports files are required but not required to contain data.
── contact-summary
│ ├── immunization
│ │ ├── contact.json
│ │ ├── expected-output.json
│ │ ├── lineage.json
│ │ └── reports.json
This file is a representation of data that would be submitted through the app via a form. It should mimic the data collected
A json file that represents a report that is being submitted through the application. When the contact summary is executed it will affect the output based on conditions set.
Represents the lineage for a contact and the available use cases, vaccines, and other details. Used when processing through the contact summary.
This file contains the data as if it were processed through the app and contact summary details were applied to it. Returning expected fields, cards, and context.
FAQs
Contact Summary test will load your contact-settings.js or contact-summary-templated.js. Then it will loop through the folders in your contact summary json exmaple folders. Then execute your contact.json, lineage.json, and reports.json against the contac
We found that @medic/contact-summary-testing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.