Skip to content

Instantly share code, notes, and snippets.

@fokusferit
fokusferit / enzyme_render_diffs.md
Last active June 18, 2024 11:27
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@sskylar
sskylar / category-loop1.html
Created April 13, 2017 19:49
Loop through a particular category (or tag) with Jekyll/Siteleaf
{% for post in site.posts %}
{% if post.categories contains 'Foo' %}
<li>{{ post.title }}</li>
{% endif %}
{% endfor %}