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

Shallow renderer and test utils bundles #9426

Merged
merged 37 commits into from
Apr 19, 2017

Commits on Apr 18, 2017

  1. Added react-dom/test-utils target

    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    02129cb View commit details
    Browse the repository at this point in the history
  2. Removed level of indirection for checkPropTypes

    Files now import directly from prop-types/checkPropTypes
    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    a3e4d67 View commit details
    Browse the repository at this point in the history
  3. Updated Rollup bundle for test-utils

    * Moved test-utils into react-dom package
    * Added test-utils to package.json 'files' list
    * Added ReactTestUtilsFBEntry module (though it doesn't really do anything at the moment)
    * Replaced ReactDOM references with react-dom to avoid duplicating code
    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    85e338b View commit details
    Browse the repository at this point in the history
  4. Cleaned up test-utils bundle slightly by removing unnecessary fb-spec…

    …ific entry point. Throw explicit error if imported in prod mode
    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    e9f542f View commit details
    Browse the repository at this point in the history
  5. Initial pass at building a shallow renderer on top of react-test-rend…

    …erer
    
    > Doesn't handle context. Doesn't handle updates. Doesn't properly handle top-level createElement comparisons.
    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    b984bcf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3dddc26 View commit details
    Browse the repository at this point in the history
  7. Added context rendering support to shallow renderer

    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    713ed38 View commit details
    Browse the repository at this point in the history
  8. Wordsmithing, minor cleanup

    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    579e7c9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b14307b View commit details
    Browse the repository at this point in the history
  10. Disabled shallow rendering tests for stack since there is no stack-fr…

    …iendly shallow renderer
    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    23a196d View commit details
    Browse the repository at this point in the history
  11. Linting and prettier

    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    bd205a9 View commit details
    Browse the repository at this point in the history
  12. Flow fixes

    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    b091278 View commit details
    Browse the repository at this point in the history
  13. Tidying up the react-test-renderer/shallow bundle

    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    631352d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    39d3b1e View commit details
    Browse the repository at this point in the history
  15. Shallow renderer no longer inlines ReactTestRenderer

    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    1ad9166 View commit details
    Browse the repository at this point in the history
  16. Added production mode error for shallow renderer

    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    45fded4 View commit details
    Browse the repository at this point in the history
  17. Added react-test-renderer stub for testing

    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    ec069f4 View commit details
    Browse the repository at this point in the history
  18. Tightened up check for ShallowRendererWrapper type

    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    037bda9 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    c65a6d0 View commit details
    Browse the repository at this point in the history
  20. Reverted modifications to results.json

    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    a6c8ed8 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    c76235b View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    f4b4c36 View commit details
    Browse the repository at this point in the history
  23. New ReactShallowRenderer implementation

    Replaced shallow renderer based on test renderer with a custom, isolated implementation that's stack and fiber compatible
    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    e71493d View commit details
    Browse the repository at this point in the history
  24. Properly handle context when setState() is called

    Handling an edge case discovered while running the new shallow renderer against www. Also added a new test case for this
    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    e1d3ded View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    7db69a5 View commit details
    Browse the repository at this point in the history
  26. Shallow renderer properly tracks new state for componentWill* and sho…

    …uldComponent* hooks
    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    9537e94 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    4012acb View commit details
    Browse the repository at this point in the history
  28. Trimmed some unnecessary paths from bundle

    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    fe1ca9f View commit details
    Browse the repository at this point in the history
  29. Udpate instance.props when sCU returns false

    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    85213e9 View commit details
    Browse the repository at this point in the history
  30. Shallow renderer updates based on Dan's PR feedback:

    * No longer call the 'componentDidMount' lifecycle hook
    * Get 'ReactDebugCurrentFrame' from 'ReactGlobalSharedState'
    * Use more standard 'shouldConstruct' type check for class vs functional components
    * Don't pass 'prevContext' param to 'componentDidUpdate'
    
    Also update instance context and state if 'shouldComponentUpdate' returns false.
    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    ac0cc8e View commit details
    Browse the repository at this point in the history
  31. Explicitly set instance.updater after construction

    Don't require subclass constructors to pass this along to super
    Brian Vaughn committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    35ae167 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2017

  1. Configuration menu
    Copy the full SHA
    4f15cba View commit details
    Browse the repository at this point in the history
  2. Shallow renderer setState() supports updater function. Also converted…

    … test vars to const/let
    Brian Vaughn committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    e8ef8fa View commit details
    Browse the repository at this point in the history
  3. Better handle setState() calls from cWM or cWRP

    Brian Vaughn committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    bf0583b View commit details
    Browse the repository at this point in the history
  4. Shallow renderer preserves state for cloned element

    Brian Vaughn committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    fc1c6f9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    50793d4 View commit details
    Browse the repository at this point in the history
  6. Updated fiber passing tests

    Brian Vaughn committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    5710088 View commit details
    Browse the repository at this point in the history