This snapshot
|
exports[`snapshot: minimal <Raw> inside <Conditional mso> > renders final HTML via the render pipeline 1`] = `"<!DOCTYPE html PUBLIC \\"-//W3C//DTD XHTML 1.0 Transitional//EN\\" \\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\"><html><body><!--[if mso]><jsx-email-raw><!--<b data-testid=\\"raw\\">hello</b>--><!--[endif]----></body></html>"`; |
shows that a
<jsx-email-raw> tag and escaped children exist within the render output of a Conditional component. That is not desirable. The desired behavior is that the contents of the Raw component within the Conditional component are rendered normally; unescaped and as if the Raw component was at the root.
Instructions:
- Analyze the source code and propose a course of action to correct this behavior
- Do not open a pull request at this time.
- Remember to build all packages before running tests. e.g.
moon jsx-email:build
- Use
moon jsx-email:test to run tests
This snapshot
jsx-email/packages/jsx-email/test/.snapshots/conditional-raw-minimal.test.tsx.snap
Line 5 in 430ee3e
<jsx-email-raw>tag and escaped children exist within the render output of a Conditional component. That is not desirable. The desired behavior is that the contents of the Raw component within the Conditional component are rendered normally; unescaped and as if the Raw component was at the root.Instructions:
moon jsx-email:buildmoon jsx-email:testto run tests