Skip to content

Instantly share code, notes, and snippets.

@jimkeller
Created September 11, 2022 21:02
Show Gist options
  • Save jimkeller/ace44e41a522d831e5b965c3c39b28b4 to your computer and use it in GitHub Desktop.
Save jimkeller/ace44e41a522d831e5b965c3c39b28b4 to your computer and use it in GitHub Desktop.
Sample HTML Fixture for Jest Plain HTML Testing
export const nested_html =
`
<div id="test-immediate-children">
<div class="immediate-child">
Immediate Child 1
<div class="descendant-child">
Descendant 1-1
</div>
<div class="descendant-child">
Descendant 1-2
</div>
</div>
<div class="immediate-child">
Immediate Child 2
<div class="descendant-child">
Descendant 2-1
</div>
<div class="descendant-child">
Descendant 2-2
</div>
</div>
</div>
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment