Jamal Hansen
  • Blog
  • Series
  • Start
  • About
  • Subscribe
Home » Tags

Testing

A magnifying glass resting on an open book in a library
Feb 15, 2025 1 min read

Stop querying found elements when testing react

Use Testing Library's within() to query nested elements in one readable line and avoid repeating yourself

Wooden boxes of decreasing size stacked and nested on a workbench
Feb 14, 2025 2 min read

Group JUnit Tests with @Nested

Use the @Nested annotation to group JUnit tests similar to a describe block in jest

Start here Now Newsletter Finds Archive Search RSS
© 2026 Jamal Hansen · Built with Hugo & PaperMod