Skip to content

Commit

Permalink
Remove ReactFragment dependency from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Mar 17, 2017
1 parent 334409d commit b219f63
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 246 deletions.
102 changes: 102 additions & 0 deletions scripts/fiber/tests-failing.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,108 @@
src/isomorphic/children/__tests__/onlyChild-test.js
* should fail when passed two children
* should fail when passed nully values
* should fail when key/value objects
* should not fail when passed interpolated single child
* should return the only child

src/isomorphic/classic/__tests__/ReactContextValidator-test.js
* should pass previous context to lifecycles

src/isomorphic/classic/types/__tests__/ReactPropTypes-test.js
* does not return a value from a validator
* does not throw if validator throws
* should warn for invalid strings
* should fail date and regexp correctly
* should not warn for valid values
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should should accept any value
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should fail for invalid argument
* should support the arrayOf propTypes
* should support arrayOf with complex types
* should warn with invalid items in the array
* should warn with invalid complex types
* should warn when passed something other than an array
* should not warn when passing an empty array
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should support components
* should not support multiple components or scalar values
* should be able to define a single child as label
* should warn when passing no label and isRequired is set
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should warn for invalid instances
* should not warn for valid values
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should warn for invalid values
* should not warn for valid values
* should not warn for iterables
* should not warn for entry iterables
* should not warn for null/undefined if not required
* should warn for missing required values
* should accept empty array for required props
* should warn if called manually in development
* should fail for invalid argument
* should support the objectOf propTypes
* should support objectOf with complex types
* should warn with invalid items in the object
* should warn with invalid complex types
* should warn when passed something other than an object
* should not warn when passing an empty object
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should warn but not error for invalid argument
* should warn for invalid values
* should not warn for valid values
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should warn but not error for invalid argument
* should warn if none of the types are valid
* should not warn if one of the types are valid
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should warn for non objects
* should not warn for empty values
* should not warn for an empty object
* should not warn for non specified types
* should not warn for valid types
* should warn for required valid types
* should warn for the first required type
* should warn for invalid key types
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should warn for non-symbol
* should not warn for a polyfilled Symbol
* should have been called with the right params
* should have been called even if the prop is not present
* should have received the validator's return value
* should not warn if the validator returned null

src/renderers/__tests__/ReactIdentity-test.js
* should allow key property to express identity
* should use composite identity
* should allow any character as a key, in a detached parent
* should allow any character as a key, in an attached parent
* should not allow scripts in keys to execute
* should let restructured components retain their uniqueness
* should let nested restructures retain their uniqueness
* should let text nodes retain their uniqueness
* should retain key during updates in composite components
* should not allow implicit and explicit keys to collide

src/renderers/dom/shared/__tests__/ReactDOMComponent-test.js
* gives source code refs for unknown prop warning (ssr)
* gives source code refs for unknown prop warning for exact elements (ssr)
Expand Down
102 changes: 0 additions & 102 deletions scripts/fiber/tests-passing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,6 @@ src/isomorphic/children/__tests__/ReactChildren-test.js
* should throw on object
* should throw on regex

src/isomorphic/children/__tests__/onlyChild-test.js
* should fail when passed two children
* should fail when passed nully values
* should fail when key/value objects
* should not fail when passed interpolated single child
* should return the only child

src/isomorphic/classic/__tests__/ReactContextValidator-test.js
* should filter out context not in contextTypes
* should pass next context to lifecycles
Expand Down Expand Up @@ -231,89 +224,6 @@ src/isomorphic/classic/element/__tests__/ReactElementValidator-test.js
* does not blow up with inlined children
* does not blow up on key warning with undefined type

src/isomorphic/classic/types/__tests__/ReactPropTypes-test.js
* does not return a value from a validator
* does not throw if validator throws
* should warn for invalid strings
* should fail date and regexp correctly
* should not warn for valid values
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should should accept any value
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should fail for invalid argument
* should support the arrayOf propTypes
* should support arrayOf with complex types
* should warn with invalid items in the array
* should warn with invalid complex types
* should warn when passed something other than an array
* should not warn when passing an empty array
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should support components
* should not support multiple components or scalar values
* should be able to define a single child as label
* should warn when passing no label and isRequired is set
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should warn for invalid instances
* should not warn for valid values
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should warn for invalid values
* should not warn for valid values
* should not warn for iterables
* should not warn for entry iterables
* should not warn for null/undefined if not required
* should warn for missing required values
* should accept empty array for required props
* should warn if called manually in development
* should fail for invalid argument
* should support the objectOf propTypes
* should support objectOf with complex types
* should warn with invalid items in the object
* should warn with invalid complex types
* should warn when passed something other than an object
* should not warn when passing an empty object
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should warn but not error for invalid argument
* should warn for invalid values
* should not warn for valid values
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should warn but not error for invalid argument
* should warn if none of the types are valid
* should not warn if one of the types are valid
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should warn for non objects
* should not warn for empty values
* should not warn for an empty object
* should not warn for non specified types
* should not warn for valid types
* should warn for required valid types
* should warn for the first required type
* should warn for invalid key types
* should be implicitly optional and not warn without values
* should warn for missing required values
* should warn if called manually in development
* should warn for non-symbol
* should not warn for a polyfilled Symbol
* should have been called with the right params
* should have been called even if the prop is not present
* should have received the validator's return value
* should not warn if the validator returned null

src/isomorphic/classic/types/__tests__/ReactPropTypesProduction-test.js
* should be a no-op
* should be a no-op
Expand Down Expand Up @@ -595,18 +505,6 @@ src/renderers/__tests__/ReactErrorBoundaries-test.js
* renders empty output if error boundary does not handle the error
* passes first error when two errors happen in commit

src/renderers/__tests__/ReactIdentity-test.js
* should allow key property to express identity
* should use composite identity
* should allow any character as a key, in a detached parent
* should allow any character as a key, in an attached parent
* should not allow scripts in keys to execute
* should let restructured components retain their uniqueness
* should let nested restructures retain their uniqueness
* should let text nodes retain their uniqueness
* should retain key during updates in composite components
* should not allow implicit and explicit keys to collide

src/renderers/__tests__/ReactMockedComponent-test.js
* should allow an implicitly mocked component to be rendered without warnings
* should allow an implicitly mocked component to be updated
Expand Down
Loading

0 comments on commit b219f63

Please sign in to comment.