enzyme v2.7.0 Release Notes

Release Date: 2016-12-21 // over 7 years ago
  • ๐Ÿ†• New Stuff

    • shallow/mount: Add .slice() method (#661)
    • mount: implement ReactWrapper#getDOMNode (#679)
    • ๐Ÿ—„ shallow/mount: Add exists; deprecate isEmpty() (#722)

    ๐Ÿ›  Fixes

    • mount: extract MountedTraversal.hasClassName from MountedTraversal.instHasClassName, which allows ReactWrapper.hasClass to bypass the !isDOMComponent(inst) call (#677)
    • withDom: Display a useful error when withDom fails to find "jsdom" (#686)
    • mount: ensure that react-text comment nodes donโ€™t break .find (#691)
    • mount: .parents() now filters out sibling path trees (#713)