npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@medic/contact-summary-testing

v2.0.1

Published

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

Downloads

101

Readme

Running Tests With Contact Summary Tests

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.

Via command line

medic-contact-summary-test path_to_contact-summary.js path_to_tests_contact_summary_json

An example using the standard config tests

medic-contact-summary-test medic-webapp/tree/master/config/standard medic-webapp/tree/master/config/standard/tests/contact-summary

Expected Files

Folder Structure

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

Contact JSON

This file is a representation of data that would be submitted through the app via a form. It should mimic the data collected

Reports JSON

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.

Lineage

Represents the lineage for a contact and the available use cases, vaccines, and other details. Used when processing through the contact summary.

Expected Output

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.