Requires a test case for every component in src/mjml to ensure that every component is tested at least once
All existing test cases from mjml-tags has been moved to this file
These tests are set up in a way that typescript will throw an error if there is not a test for every component in src/mjml
mjml-props
test specific prop logic. The component used for testing is arbitrary, since many of the props are the same across many components
One change was also made while testing. I noticed MjmlStyle automatically passed its children to dangerouslySetInnerHtml under the hood. This is bad because it is not obvious to the developer. Given that we have added support for the dangerouslySetInnerHtml prop, I updated this component to use children as expected.
Add two test case files:
mjml-components
mjml-props
One change was also made while testing. I noticed MjmlStyle automatically passed its children to dangerouslySetInnerHtml under the hood. This is bad because it is not obvious to the developer. Given that we have added support for the dangerouslySetInnerHtml prop, I updated this component to use children as expected.