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.1.2
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.1.3
Choose a head ref
  • 19 commits
  • 47 files changed
  • 8 contributors

Commits on May 9, 2023

  1. Configuration menu
    Copy the full SHA
    f9af830 View commit details
    Browse the repository at this point in the history
  2. Update README.md

    mdjastrzebski authored May 9, 2023
    Configuration menu
    Copy the full SHA
    7564bb5 View commit details
    Browse the repository at this point in the history
  3. Fix a11y typo (#1408)

    * Fix a11y typo
    
    * Add missing (deprecated)
    CodingItWrong authored May 9, 2023
    Configuration menu
    Copy the full SHA
    9906ab7 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2023

  1. feat: User Event core code (#1405)

    * chore: extract user event common parts
    
    * chore: stub press/type implementations
    
    * chore: add sample tests
    
    * refactor: tweaks
    
    * chore: improve test coverage
    
    * chore: more sample tests
    
    * refactor: remove Date.now touch event timestamp
    
    * chore: hide new docs from website
    
    * feat: expose direct access
    mdjastrzebski authored May 10, 2023
    Configuration menu
    Copy the full SHA
    dab444d View commit details
    Browse the repository at this point in the history
  2. Update README.md

    mdjastrzebski authored May 10, 2023
    Configuration menu
    Copy the full SHA
    bf600e1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8c22290 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2023

  1. Configuration menu
    Copy the full SHA
    ded5c36 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    90a6169 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. chore: switch Codecov PR comment to default behavior (#1415)

    It's super annoying to get dozens of meaningless codecov notifications in my inbox every day, because of the current behavior. Switching to default to "update, if exists. Otherwise post new"
    
    Ref: https://docs.codecov.com/docs/pull-request-comments#behavior
    thymikee authored May 31, 2023
    Configuration menu
    Copy the full SHA
    ce75f66 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2023

  1. refactor: flush microtask queue implementation (#1374)

    * refactor: flush microtask queue implementation
    
    * refactor: code review changes
    
    * refactor: restore original flush function as legacy version
    
    * chore: rename file
    mdjastrzebski authored Jun 9, 2023
    Configuration menu
    Copy the full SHA
    918be8c View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

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

Commits on Jul 13, 2023

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

Commits on Jul 17, 2023

  1. fix: fixing TypeScript accessibility issue for custom render function (

    …#1428)
    
    * fix: export DebugFunction interface to resolve accessibility issues
    
    * feat: add DebugFunction to exported types from render module
    FelipeESchmidt authored Jul 17, 2023
    Configuration menu
    Copy the full SHA
    1c0fc79 View commit details
    Browse the repository at this point in the history
  2. feat: userEvent.press (#1386)

    * feat: create first version of userEvent.press
    
    * feat: do not trigger press event when pointer events is disabled
    
    * feat: make press events bubble up when trigerring a non touch responder
    
    * tests: add test cases for userevent.press to check calls to onPressIn and onPressOut
    
    * refactor: move userEvent.press tests in a dedicated test file
    
    * feat: add pressDuration option for userEvent.press
    
    * refactor: group test that check prop calls
    
    * feat: add support for touchable opacity for userevent press
    
    * feat: add support for Text
    
    * feat: add support for TextInput for userEvent.press
    
    * refactor: add some comments to explain pointer events api
    
    * refactor: change the api of userEvent.press to make it async
    
    * feat: add support for real timers for userEvent.press
    
    * refactor: create a longPress api and remove duration option from press api
    
    * feat: add warning for users when userEvent is used with real timers
    
    * refactor: rewrite press using common user event code
    
    * refactor: remove duplicate pointerEventEnabled method
    
    * refactor: remove check on fake timers in user.press
    
    * refactor: change order of functions in press file to have exports first
    
    * feat: add delay before press
    
    * feat: wait min press duration before calling onPressout for text and textInput
    
    * chore: improve coverage
    
    * feat: account for press duration when waiting for press out
    
    * fix: wait for press duration also when pressing text or textinput
    
    * docs: add documentation on press and longpress
    
    * fix: check pointer events for Text and TextInput
    
    * chore: fixes and tweaks on userEvent docs
    
    * Update press doc based on review suggestion
    
    Co-authored-by: Maciej Jastrzebski <[email protected]>
    
    * refactor: rename pressDuration option to duration
    
    * Update longPress doc based on review suggestion
    
    Co-authored-by: Maciej Jastrzebski <[email protected]>
    
    * refactor: use ts doc for isPointerEventsEnabled method
    
    * refactor: rename file isPointerEventsEnabled to pointer-events
    
    * refactor: split test in longPress in two
    
    * refactor: use Date.now instead of new Date().getTime()
    
    * refactor: also test payload of events for press and longpress
    
    * refactor: fix typo in some longpress test names
    
    * Update src/user-event/press/utils/warnAboutRealTimers.ts
    
    Co-authored-by: Maciej Jastrzebski <[email protected]>
    
    * refactor: merge press and touch events
    
    * fix: return after pressing text or textinput
    
    * refactor: extract functions to trigger press on text/textInput
    
    * refactor: use optional chaining
    
    * feat: update warning when using userEvent with real timers
    
    * refactor: check on press test that longPress is not called
    
    * refactor: test directly warnings logged with real timers without mocking function
    
    ---------
    
    Co-authored-by: pierrezimmermann <[email protected]>
    Co-authored-by: Maciej Jastrzebski <[email protected]>
    3 people authored Jul 17, 2023
    Configuration menu
    Copy the full SHA
    1f38177 View commit details
    Browse the repository at this point in the history
  3. chore: yarn upgrade (#1433)

    * chore: yarn upgrade
    
    * chore: fix yarn.lock
    mdjastrzebski authored Jul 17, 2023
    Configuration menu
    Copy the full SHA
    5bb5d2d View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2023

  1. fix: correct type inference for props when initialProps is used (#1421)

    * fix: correct type inference for props when initialProps is used
    
    * Update src/__tests__/renderHook.test.tsx
    
    * refactor: simplify type of Renderhook options
    
    ---------
    
    Co-authored-by: pierrezimmermann <[email protected]>
    Co-authored-by: Maciej Jastrzebski <[email protected]>
    3 people authored Jul 19, 2023
    Configuration menu
    Copy the full SHA
    fa0c86e View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2023

  1. feat: add autocomplete for fireEvent event names (#1434)

    * feat: add autocomplete for fireEvent event names
    
    * feat: uncapitalize fireEvent autocomplete propositions
    
    * feat: add textinput props to the autocomplete
    
    * refactor: fix textinput props reference
    
    ---------
    
    Co-authored-by: pierrezimmermann <[email protected]>
    Co-authored-by: Maciej Jastrzębski <[email protected]>
    3 people authored Jul 20, 2023
    Configuration menu
    Copy the full SHA
    7587e69 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2023

  1. fix: add prop to render to skip configureHostComponentNamesIfNeeded (#…

    …1425)
    
    * Add prop to render to skip componentnamesconfig
    
    * refactor: render internal with extra options
    
    * refactor: apply renderInternal to renderHook
    
    * chore: add tests to check for single render
    
    * refactor: simplify code
    
    * refactor: finishing touches
    
    * chore: fix lint
    
    ---------
    
    Co-authored-by: Maciej Jastrzębski <[email protected]>
    KrastanD and mdjastrzebski authored Jul 21, 2023
    Configuration menu
    Copy the full SHA
    fcaca52 View commit details
    Browse the repository at this point in the history
  2. v12.1.3

    mdjastrzebski committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    64b76b0 View commit details
    Browse the repository at this point in the history
Loading