• 目录
  • 简介
  • 指南
    • 从 2.x 迁移到 3.x
    • Browserify
    • SystemJS
    • Webpack
    • JSDOM
    • Jest
    • Karma
    • Mocha
    • React Native
    • Lab
    • Tape 和 AVA
  • 安装
    • 使用 React 16.x
    • 使用 React 15.x
    • 使用 React 0.14.x
    • 使用 React 0.13.x
  • API 参考
    • 浅渲染
      • at(index)
      • childAt()
      • children()
      • closest(selector)
      • contains(nodeOrNodes)
      • containsAllMatchingElements(nodes)
      • containsAnyMatchingElements(nodes)
      • containsMatchingElement(node)
      • context([key])
      • debug()
      • dive()
      • equals(node)
      • every(selector)
      • everyWhere(predicate)
      • exists([selector])
      • filter(selector)
      • filterWhere(predicate)
      • find(selector)
      • findWhere(predicate)
      • first()
      • forEach(fn)
      • get(index)
      • getWrappingComponent()
      • getElement(index)
      • getElements(index)
      • hasClass(className)
      • hostNodes()
      • html()
      • instance()
      • invoke(propName)
      • is(selector)
      • isEmpty()
      • isEmptyRender()
      • key()
      • last()
      • map(fn)
      • matchesElement(node)
      • name()
      • not(selector)
      • parent()
      • parents()
      • prop(key)
      • props()
      • reduce(fn[, initialValue])
      • reduceRight(fn[, initialValue])
      • render()
      • renderProp(key)
      • setContext(context)
      • setProps(nextProps)
      • setState(nextState[, callback])
      • shallow([options])
      • simulate(event[, data])
      • simulateError(error)
      • slice([begin[, end]])
      • some(selector)
      • someWhere(predicate)
      • state([key])
      • tap(intercepter)
      • text()
      • type()
      • unmount()
      • update()
    • 完整 DOM 渲染
      • at(index)
      • childAt()
      • children()
      • contains(nodeOrNodes)
      • containsAllMatchingElements(nodes)
      • containsAnyMatchingElements(nodes)
      • containsMatchingElement(node)
      • closest(selector)
      • context([key])
      • debug()
      • detach()
      • equals(node)
      • every(selector)
      • everyWhere(predicate)
      • exists([selector])
      • filter(selector)
      • filterWhere(predicate)
      • find(selector)
      • findWhere(predicate)
      • first()
      • forEach(fn)
      • get(index)
      • getDOMNode()
      • getWrappingComponent()
      • hasClass(className)
      • hostNodes()
      • html()
      • instance()
      • invoke(propName)
      • is(selector)
      • isEmpty()
      • isEmptyRender()
      • key()
      • last()
      • map(fn)
      • matchesElement(node)
      • mount()
      • name()
      • not(selector)
      • parent()
      • parents()
      • prop(key)
      • props()
      • reduce(fn[, initialValue])
      • reduceRight(fn[, initialValue])
      • ref(refName)
      • render()
      • renderProp(key)
      • setContext(context)
      • setProps(nextProps[, callback])
      • setState(nextState[, callback])
      • simulate(event[, data])
      • simulateError(error)
      • slice([begin[, end]])
      • some(selector)
      • someWhere(predicate)
      • state([key])
      • tap(intercepter)
      • text()
      • type()
      • unmount()
      • update()
    • 静态渲染
    • 选择器
  • 变更日志
  • 未来
  • 贡献指南
  • 使用 GitBook 发布

指南

enzyme 指南

  • 使用 enzyme 与 Browserify
  • 使用 enzyme 与 Webpack
  • 使用 enzyme 与 JSDOM
  • 使用 Enzyme 与 Jest
  • 使用 Enzyme 与 Karma
  • 使用 Enzyme 与 Mocha
  • 使用 Enzyme 与 React Native
  • 使用 Enzyme 与 Lab
  • 使用 Enzyme 与 Tape 和 AVA