enzyme v2.3.0 Release Notes

Release Date: 2016-05-09 // almost 8 years ago
  • Minor Changes

    • โž• add .tap() method to ShallowWrapper and ReactWrapper (#299)

    • โž• add .key() method to ShallowWrapper and ReactWrapper (#327)

    • โž• add support for descendent selectors, >, ~ and + (#217)

    • ๐Ÿ†• new containsMatchingElement, containsAllMatchingElements, and containsAnyMatchingElements APIs (#362)

    • ๐Ÿ†• new .name() method (#335)

    Patches

    • โž• add dblclick to eventType map for simulate (#317)

    • ๐Ÿ›  fix pathToNode bug with child-containing children (#296)

    • prioritize displayName over name for consistency in .debug() (#332)

    • ๐Ÿ– handle insignificant whitespace in className (#348)

    • ๐Ÿ›  fix handling of SFC components and .instance() (#359)

    • โฌ‡๏ธ reduce false positives by using argument validation for .contains (#259)

    • ๐Ÿ›  fix equality algorithm so that non-renderable nodes are equivalent (#192)

    • โž• add better error handling for state, setState, and context (#373)