Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tests] [Refactor] move and share shallow/mount tests to individual files for each method #2070

Merged
merged 4 commits into from Apr 1, 2019

Conversation

ljharb
Copy link
Member

@ljharb ljharb commented Mar 25, 2019

  • Symbol.iterator
  • at
  • childAt
  • children
  • closest
  • contains
  • containsAllMatchingElements
  • containsAnyMatchingElements
  • containsMatchingElement
  • debug
  • equals
  • every
  • everyWhere
  • exists
  • filter
  • filterWhere
  • find
  • findWhere
  • first
  • flatMap
  • forEach
  • get
  • getElement
  • getElements
  • getNode
  • getNodes
  • hasClass
  • hostNodes
  • html
  • instance
  • is
  • isEmpty
  • isEmptyRender
  • key
  • last
  • map
  • matchesElement
  • name
  • not
  • parent
  • parents
  • prop
  • props
  • reduce
  • reduceRight
  • render
  • renderProp
  • root
  • setContext
  • setProps
  • setState
  • simulate
  • simulateError
  • single
  • slice
  • some
  • someWhere
  • state
  • tap
  • text
  • wrap
  • unmount

Also updated the contribution guide to reflect this.

Oddly, though - I would expect coverage to either remain the same, or to go up, since this branch ends up starting to run a number of previously shallow-only or mount-only on the other wrapper API - but it seems like it's gone down.

…al files for each method:

 - `Symbol.iterator`
 - `at`
 - `childAt`
 - `children`
 - `closest`
 - `contains`
 - `containsAllMatchingElements`
 - `containsAnyMatchingElements`
 - `containsMatchingElement`
 - `debug`
 - `equals`
 - `every`
 - `everyWhere`
 - `exists`
 - `filter`
 - `filterWhere`
 - `find`
 - `findWhere`
 - `first`
 - `flatMap`
 - `forEach`
 - `get`
 - `getElement`
 - `getElements`
 - `getNode`
 - `getNodes`
 - `hasClass`
 - `hostNodes`
 - `html`
 - `instance`
 - `is`
 - `isEmpty`
 - `isEmptyRender`
 - `key`
 - `last`
 - `map`
 - `matchesElement`
 - `name`
 - `not`
 - `parent`
 - `parents`
 - `prop`
 - `props`
 - `reduce`
 - `reduceRight`
 - `render`
 - `renderProp`
 - `root`
 - `setContext`
 - `setProps`
 - `setState`
 - `simulate`
 - `simulateError`
 - `single`
 - `slice`
 - `some`
 - `someWhere`
 - `state`
 - `tap`
 - `text`
 - `wrap`
 - `unmount`
@ljharb ljharb added the Tests label Mar 25, 2019
@ljharb ljharb requested a review from madicap March 25, 2019 22:14
@ljharb ljharb force-pushed the test_refactor branch 2 times, most recently from 0c8a9d6 to edc1caf Compare March 26, 2019 04:35
@ljharb ljharb force-pushed the test_refactor branch 3 times, most recently from 60c4dd9 to 6f60a00 Compare April 1, 2019 06:29
@ljharb ljharb merged commit 6f60a00 into master Apr 1, 2019
@ljharb ljharb deleted the test_refactor branch April 1, 2019 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants