Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: callstack/react-native-testing-library
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v12.3.0
Choose a base ref
...
head repository: callstack/react-native-testing-library
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v12.3.1
Choose a head ref
  • 16 commits
  • 49 files changed
  • 10 contributors

Commits on Sep 7, 2023

  1. Configuration menu
    Copy the full SHA
    8373d6a View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2023

  1. feat: implement toBeSelected matcher (#1488)

    * feat: implement toBeSelected
    
    * refactor: tweaks
    
    * refactor: tweak tests
    
    * refactor: finishing touches
    
    ---------
    
    Co-authored-by: Maciej Jastrzębski <[email protected]>
    AntoineThibi and mdjastrzebski authored Sep 8, 2023
    Configuration menu
    Copy the full SHA
    1592d35 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2023

  1. feat: toBeBusy() matcher (#1493)

    * feat: create always passing toBeBusy() matcher
    
    * test: prepare toBeBusy() tests
    
    * feat: implement toBeBusy() passing condition
    
    * feat: implement error message
    
    * test: update error message snapshots to correct format
    
    * refactor: use screen variable
    
    * refactor: tweaks
    
    * refactor: cleanup
    
    * refactor:  clean up
    
    * refactor: finishing touches
    
    ---------
    
    Co-authored-by: Maciej Jastrzębski <[email protected]>
    Hugo Duprat and mdjastrzebski authored Sep 12, 2023
    Configuration menu
    Copy the full SHA
    701433c View commit details
    Browse the repository at this point in the history
  2. feat: toHaveStyle matcher (#1487)

    * feat: implement toHaveStyle with tests
    
    * refactor: tweaks and cleanup
    
    ---------
    
    Co-authored-by: Marcin Kornek <[email protected]>
    Co-authored-by: Maciej Jastrzebski <[email protected]>
    3 people authored Sep 12, 2023
    Configuration menu
    Copy the full SHA
    3b9c4da View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. feat: user event scroll (#1445)

    * feat: setup dummy scroll endpoint
    
    * chore: use ScrollEventBuilder
    
    * chore: enhance API endpoint with parameters
    
    * chore: emit multiple scroll events
    
    * fix: intermediate steps offset values
    
    * feat: momentum scroll
    
    * chore: add scroll to userEvent
    
    * feat: scrollToTop
    
    * feat: remember scroll position for element
    
    * fix: setting and getting scroll state
    
    * chore: validate host component type
    
    * chore: validate and emit intermediate callbacks in scrollToTop
    
    * chore: fix ts
    
    * refactor: rename scroll to scrollTo
    
    * refactor: y & x scrollTo params
    
    * refactor: refactor y, x params to support explicit steps
    
    * chore: fix typecheck
    
    * refactor: improve typing
    
    * refactor: momentumY, momentumX options
    
    * docs: initial docs for `scrollTo`
    
    * refactor: descope `scrollToTop` variant
    
    * docs: tweaks
    
    * refactor: improve TS typing by separating vertical/horizontal scroll
    
    * refactor: wrap scroll event in nativeEvent wrapper
    
    * refactor: clean up implementation
    
    * chore: add FlatList tests
    
    * refactor: remove explicit steps
    
    * refactor: introduce inertial interpolator for momentum scroll
    
    * docs: update docs
    
    * chore: update snapshots
    
    * refactor: code review changes
    
    * feat: validate scroll direction
    
    * docs: tweaks
    
    * docs: tweak
    
    * refactor: add more tests to improve code cov
    
    * refactor: improve errors
    
    * refactor: code review tweaks
    
    * refactor: add wait calls
    
    * refactor: tweaks, tweaks, tweaks
    
    * refactor: final tweaks
    
    ---------
    
    Co-authored-by: Maciej Jastrzębski <[email protected]>
    siepra and mdjastrzebski authored Sep 13, 2023
    Configuration menu
    Copy the full SHA
    a7ea95d View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. Configuration menu
    Copy the full SHA
    a016062 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2023

  1. chore: update deps 2023-09-18 (#1499)

    * chore: upgrade example/basic deps
    
    * chore: update some deps
    
    * chore: upgrade other deps
    
    * chore: fix lint
    
    * chore: yarn upgrade (partial)
    
    * chore: yarn upgrade (partial 2)
    
    * chore: yarn upgrade (partial)
    
    * chore: yarn upgrade (partial)
    
    * chore: yarn upgrade (partial)
    
    * chore: yarn upgrade react-native
    
    * chore: upgrade rest (ex react-test-renderer)
    mdjastrzebski authored Sep 18, 2023
    Configuration menu
    Copy the full SHA
    08e4d02 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7a12847 View commit details
    Browse the repository at this point in the history
  3. docs: note required RNTL version for user-event in user-event.md (#1494)

    * docs: note required RNTL version for user-event in user-event.md
    
    * chore: tweak wording
    
    * chore: tweak
    
    * chore: tweaks
    
    ---------
    
    Co-authored-by: Maciej Jastrzebski <[email protected]>
    meatnordrink and mdjastrzebski authored Sep 18, 2023
    Configuration menu
    Copy the full SHA
    f538029 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. Configuration menu
    Copy the full SHA
    d36137b View commit details
    Browse the repository at this point in the history
  2. feat: toContainElement matcher (#1495)

    * feat: add toContainElement matcher
    
    * chore: replace printElement with formatElement
    
    * chore: mimic jest-dom instead of jest-native
    
    * fix: checking host element
    
    * test: passing null as argument
    
    * chore: rename basic test case
    
    * test: negative case
    
    * test: on null elements
    
    * fix: validating host container and element
    
    * refactor: code review changes
    
    * refactor: tweaks
    
    * refactors: cleanup
    
    ---------
    
    Co-authored-by: Maciej Jastrzebski <[email protected]>
    siepra and mdjastrzebski authored Sep 19, 2023
    Configuration menu
    Copy the full SHA
    d898a9d View commit details
    Browse the repository at this point in the history
  3. feat: toBeExpanded matcher (#1497)

    * feat: toBeExpanded matcher
    
    * feat: toBeCollapsed matcher
    
    * chore: shorten syntax for isElementCollapsed check
    
    * refactor: clean up
    
    ---------
    
    Co-authored-by: Maciej Jastrzebski <[email protected]>
    siepra and mdjastrzebski authored Sep 19, 2023
    Configuration menu
    Copy the full SHA
    a9f32a6 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2023

  1. Configuration menu
    Copy the full SHA
    32dca59 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3be9f3b View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. Fix: switch IS_REACT_ACT_ENVIRONMENT in userEvent (#1491)

    * fix: use act in wait util
    
    * refactor: remove useless usage of act in press implem
    
    * refactor: make test fail by checking console.error is not called
    
    * refactor: extract async wrapper from waitFor implem
    
    * feat: use asyncWrapper for userEvent to prevent act warnings
    
    * refactor: add comment making test on act environment more explicit
    
    * refactor: move asyncWrapper to helper folder cause its not direclty tied to userevent
    
    * refactor: add comment in asyncWrapper
    
    * refactor: move UE `act` test to UE `press` tests
    
    * refactor: tweaks
    
    * refactor: naming tweaks
    
    * chore: revert unnecessary filename change
    
    * chore: exclude code cov for React <= 17
    
    * chore: disable codecov for wrap-async
    
    ---------
    
    Co-authored-by: pierrezimmermann <[email protected]>
    Co-authored-by: Maciej Jastrzebski <[email protected]>
    3 people authored Oct 23, 2023
    Configuration menu
    Copy the full SHA
    328466d View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. v12.3.1

    mdjastrzebski committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    798100b View commit details
    Browse the repository at this point in the history
Loading