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.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.3.3
Choose a head ref
  • 8 commits
  • 48 files changed
  • 5 contributors

Commits on Nov 6, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b019479 View commit details

Commits on Nov 8, 2023

  1. feat: toHaveAccessibleName matcher (#1509)

    * feat: toHaveAccessibleName matcher
    
    * feat: toHaveAccessibleName matcher
    
    * feat: toHaveAccessibleName matcher
    
    * refactor: check logic
    
    * chore: fix lint
    
    * refactor: tests
    
    * chore: test tweaks
    
    ---------
    
    Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com>
    anishamalde and mdjastrzebski authored Nov 8, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2ada536 View commit details

Commits on Nov 9, 2023

  1. docs: Jest matchers docs (#1506)

    * docs: v1 of jest matchers docs
    
    * chore: add TOC
    
    * chore: tweak heading levels
    
    * docs: tweaks
    
    * docs: cross references
    
    * docs: tweaks
    
    * docs: tweaks
    
    * docs: tweaks
    
    * Update website/docs/JestMatchers.md
    
    Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>
    
    * Update website/docs/JestMatchers.md
    
    Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>
    
    * Update website/docs/JestMatchers.md
    
    Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>
    
    * Update website/docs/JestMatchers.md
    
    Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>
    
    * Update website/docs/JestMatchers.md
    
    Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>
    
    * Update website/docs/JestMatchers.md
    
    Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>
    
    * Update website/docs/MigrationJestMatchers.md
    
    Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>
    
    * Update website/docs/MigrationJestMatchers.md
    
    Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>
    
    * docs: spellchecking
    
    * chore: final fixes
    
    ---------
    
    Co-authored-by: Pierre Zimmermann <64224599+pierrezimmermannbam@users.noreply.github.com>
    mdjastrzebski and pierrezimmermannbam authored Nov 9, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    84ba56e View commit details

Commits on Nov 13, 2023

  1. chore: modern yarn (4.0) (#1517)

    * chore: upgrade to Yarn 4
    
    * chore: upgrade examples/basic
    
    * chore: add git ignores
    
    * chore: upgrade website yarn
    
    * chore: fix yarn scripts
    
    * chore: git ignore tweaks
    
    * chore: git ignore tweaks
    mdjastrzebski authored Nov 13, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    817d4ed View commit details
  2. chore: enable Yarn 4 on CI (#1525)

    * chore: enable Yarn 4 on CI (attempt 1)
    
    * chore: attempt 2
    
    * chore: attempt 3
    
    * chore: attempt 4
    
    * chore: attempt 5
    
    * chore: fix website
    
    * chore: fix attempt 6'
    mdjastrzebski authored Nov 13, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    80e64cf View commit details
  3. chore: expose Jest Native exports (#1522)

    * chore: expose Jest Native exports
    
    * chore: update files
    mdjastrzebski authored Nov 13, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4549e7b View commit details
  4. Dependabot/npm and yarn/callstack/eslint config 14.0.0 (#1526)

    * chore(deps-dev): bump @callstack/eslint-config from 13.0.2 to 14.0.0
    
    Bumps [@callstack/eslint-config](https://github.com/callstack/eslint-config-callstack) from 13.0.2 to 14.0.0.
    - [Release notes](https://github.com/callstack/eslint-config-callstack/releases)
    - [Commits](callstack/eslint-config-callstack@v13.0.2...v14.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: "@callstack/eslint-config"
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * refactor: fix lint issues
    
    * refactor: fix lint issues
    
    * refactor: fix lint issues
    
    * refactor: fix lint issues
    
    * chore: update callstack-eslint config
    
    ---------
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    mdjastrzebski and dependabot[bot] authored Nov 13, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    aad0849 View commit details
  5. v12.3.3

    mdjastrzebski committed Nov 13, 2023
    Copy the full SHA
    bc1ec0d View commit details
Showing with 23,849 additions and 14,890 deletions.
  1. +9 −4 .github/actions/setup-deps/action.yml
  2. +6 −4 .github/actions/setup-website-deps/action.yml
  3. +10 −0 .gitignore
  4. +1 −0 .nvmrc
  5. +893 −0 .yarn/releases/yarn-4.0.1.cjs
  6. +5 −0 .yarnrc.yml
  7. +8 −2 CONTRIBUTING.md
  8. +11 −11 README.md
  9. +11 −0 examples/basic/.gitignore
  10. +3 −2 examples/basic/package.json
  11. +1 −0 extend-expect.d.ts
  12. +1 −0 extend-expect.js
  13. +8 −6 package.json
  14. +2 −2 src/__tests__/act.test.tsx
  15. +1 −1 src/__tests__/render-hook.test.tsx
  16. +1 −1 src/__tests__/timer-utils.ts
  17. +1 −1 src/__tests__/wait-for-element-to-be-removed.test.tsx
  18. +1 −1 src/__tests__/wait-for.test.tsx
  19. +2 −1 src/fire-event.ts
  20. +1 −1 src/helpers/__tests__/timers.test.ts
  21. +22 −1 src/helpers/accessiblity.ts
  22. +1 −1 src/index.ts
  23. +134 −0 src/matchers/__tests__/to-have-accessible-name.test.tsx
  24. +1 −0 src/matchers/extend-expect.d.ts
  25. +2 −0 src/matchers/extend-expect.ts
  26. +1 −0 src/matchers/index.ts
  27. +53 −0 src/matchers/to-have-accessible-name.tsx
  28. +1 −1 src/matchers/utils.tsx
  29. +6 −6 src/queries/__tests__/accessibility-state.test.tsx
  30. +6 −6 src/queries/__tests__/accessibility-value.test.tsx
  31. +5 −5 src/queries/__tests__/label-text.test.tsx
  32. +2 −2 src/queries/__tests__/make-queries.test.tsx
  33. +2 −1 src/render-act.ts
  34. +2 −2 src/render.tsx
  35. +2 −2 src/user-event/__tests__/clear.test.tsx
  36. +1 −1 src/user-event/setup/setup.ts
  37. +2 −1 src/user-event/utils/dispatch-event.ts
  38. +1 −1 src/wait-for-element-to-be-removed.ts
  39. +1 −1 src/wait-for.ts
  40. +9 −0 website/.gitignore
  41. +893 −0 website/.yarn/releases/yarn-4.0.1.cjs
  42. +1 −0 website/.yarnrc.yml
  43. +216 −0 website/docs/JestMatchers.md
  44. +79 −0 website/docs/MigrationJestMatchers.md
  45. +10 −9 website/docs/Queries.md
  46. +2 −1 website/package.json
  47. +10,943 −7,669 website/yarn.lock
  48. +10,475 −7,143 yarn.lock
13 changes: 9 additions & 4 deletions .github/actions/setup-deps/action.yml
Original file line number Diff line number Diff line change
@@ -7,16 +7,21 @@ runs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version-file: .nvmrc

- name: Cache deps
id: yarn-cache
uses: actions/cache@v3
with:
path: ./node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
path: |
./node_modules
.yarn/install-state.gz
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
${{ runner.os }}-yarn-
- name: Install deps
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
run: yarn install --immutable
shell: bash
10 changes: 6 additions & 4 deletions .github/actions/setup-website-deps/action.yml
Original file line number Diff line number Diff line change
@@ -7,16 +7,18 @@ runs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version-file: .nvmrc

- name: Cache website deps
id: yarn-cache-website
uses: actions/cache@v3
with:
path: ./website/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}-website
path: |
./website/node_modules
./website/yarn/install-state.gz
key: website-${{ runner.os }}-yarn-${{ hashFiles('./website/yarn.lock') }}

- name: Install website deps
if: steps.yarn-cache-website.outputs.cache-hit != 'true'
run: yarn --cwd website install --frozen-lockfile
run: yarn --cwd website install --immutable
shell: bash
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# General Node.js
node_modules
coverage
*.log
@@ -6,6 +7,15 @@ build
.idea
.DS_Store

# Yarn 4.x
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Ignore lock files in examples for now
examples/**/yarn.lock
.docusaurus
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
Loading