Skip to content

Commit afe3142

Browse files
committed
Merge branch 'main' into v14
# Conflicts: # .github/workflows/ci.yml # jest-setup.ts # package.json # src/__tests__/react-native-animated.test.tsx # src/__tests__/render-hook.test.tsx # src/__tests__/render.test.tsx # src/__tests__/wait-for.test.tsx # src/act.ts # src/fire-event.ts # src/helpers/__tests__/component-tree.test.tsx # src/helpers/accessibility.ts # src/helpers/component-tree.ts # src/helpers/debug.ts # src/helpers/find-all.ts # src/helpers/format.ts # src/helpers/host-component-names.ts # src/helpers/matchers/match-accessibility-state.ts # src/helpers/matchers/match-accessibility-value.ts # src/helpers/matchers/match-label-text.ts # src/helpers/matchers/match-text-content.ts # src/helpers/pointer-events.ts # src/helpers/string-validation.ts # src/helpers/text-input.ts # src/index.ts # src/matchers/__tests__/to-be-empty-element.test.tsx # src/matchers/__tests__/utils.test.tsx # src/matchers/to-be-busy.ts # src/matchers/to-be-checked.ts # src/matchers/to-be-disabled.ts # src/matchers/to-be-empty-element.ts # src/matchers/to-be-expanded.ts # src/matchers/to-be-on-the-screen.ts # src/matchers/to-be-partially-checked.ts # src/matchers/to-be-selected.ts # src/matchers/to-be-visible.ts # src/matchers/to-contain-element.ts # src/matchers/to-have-accessibility-value.ts # src/matchers/to-have-accessible-name.ts # src/matchers/to-have-display-value.ts # src/matchers/to-have-prop.ts # src/matchers/to-have-style.ts # src/matchers/to-have-text-content.ts # src/matchers/types.ts # src/matchers/utils.ts # src/native-state.ts # src/queries/display-value.ts # src/queries/hint-text.ts # src/queries/label-text.ts # src/queries/make-queries.ts # src/queries/placeholder-text.ts # src/queries/role.ts # src/queries/test-id.ts # src/queries/text.ts # src/queries/unsafe-props.ts # src/queries/unsafe-type.ts # src/render-act.ts # src/render.tsx # src/screen.ts # src/user-event/clear.ts # src/user-event/index.ts # src/user-event/paste.ts # src/user-event/press/press.ts # src/user-event/scroll/scroll-to.ts # src/user-event/setup/setup.ts # src/user-event/type/type.ts # src/user-event/utils/dispatch-event.ts # src/within.ts # yarn.lock
2 parents e905792 + 6dc9ae0 commit afe3142

File tree

232 files changed

+8082
-17646
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+8082
-17646
lines changed

.codecov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ coverage:
33
round: down
44
range: 70...100
55
status:
6+
patch:
7+
default:
8+
target: 80% # Required patch coverage target
69
project:
710
default:
811
threshold: 0.5% # Allowable coverage drop in percentage points

.eslintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,21 @@ jobs:
6767
env:
6868
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6969

70-
test-website:
70+
test-react-18:
71+
needs: [install-cache-deps]
7172
runs-on: ubuntu-latest
72-
name: Test Website
73+
name: Test React 18
7374
steps:
7475
- name: Checkout
7576
uses: actions/checkout@v4
7677

77-
- name: Setup Node.js and website deps
78-
uses: ./.github/actions/setup-website-deps
78+
- name: Setup Node.js and deps
79+
uses: ./.github/actions/setup-deps
7980

80-
- name: Build website
81-
run: yarn --cwd website build
81+
- name: Switch to React 18
82+
run: |
83+
yarn remove react react-test-renderer react-native @react-native/babel-preset
84+
85+
86+
- name: Test
87+
run: yarn test:ci

.github/workflows/deploy-website.yml renamed to .github/workflows/website.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,31 @@ on:
44
push:
55
branches: [main]
66
paths: ['website/**']
7+
pull_request:
8+
branches: ['**']
9+
paths: ['website/**']
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{ !contains(github.ref, 'main')}}
714

815
jobs:
16+
test:
17+
runs-on: ubuntu-latest
18+
name: Test Website
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Node.js and website deps
24+
uses: ./.github/actions/setup-website-deps
25+
26+
- name: Build website
27+
run: yarn --cwd website build
28+
929
deploy:
1030
name: Deploy to GitHub Pages
31+
if: github.ref == 'refs/heads/main'
1132
runs-on: ubuntu-latest
1233
steps:
1334
- name: Checkout
@@ -25,12 +46,11 @@ jobs:
2546
uses: peaceiris/actions-gh-pages@v3
2647
with:
2748
github_token: ${{ secrets.GITHUB_TOKEN }}
28-
# Build output to publish to the `gh-pages` branch:
2949
publish_dir: ./website/build
3050
# The following lines assign commit authorship to the official
3151
# GH-Actions bot for deploys to `gh-pages` branch:
3252
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
3353
# The GH actions bot is used by default if you didn't specify the two fields.
3454
# You can swap them out with your own user credentials.
3555
user_name: github-actions[bot]
36-
user_email: 41898282+github-actions[bot]@users.noreply.github.com
56+
user_email: 41898282+github-actions[bot]@users.noreply.github.com

.yarn/releases/yarn-4.4.0.cjs

Lines changed: 0 additions & 925 deletions
This file was deleted.

.yarn/releases/yarn-4.6.0.cjs

Lines changed: 934 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ enableGlobalCache: true
22

33
nodeLinker: node-modules
44

5-
yarnPath: .yarn/releases/yarn-4.4.0.cjs
5+
yarnPath: .yarn/releases/yarn-4.6.0.cjs

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ When you're sending a pull request:
4949

5050
### Publishing a release
5151

52+
We use [release-it](https://github.com/release-it/release-it) to publish a release. It takes care of versioning, changelog generation, and publishing to NPM.
53+
5254
```sh
53-
yarn publish
55+
yarn release
5456
```
5557

56-
5. Push changes & tag to `origin`.
57-
5858
## Reporting issues
5959

6060
You can report issues on our [bug tracker](https://github.com/callstack/react-native-testing-library/issues). Please follow the issue template when opening an issue.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ React Native Testing Library consists of following APIs:
102102

103103
## Migration Guides
104104

105-
- [Migration to 12.0](https://callstack.github.io/react-native-testing-library/docs/migration/v12)
105+
- [Migration to 13.0](https://callstack.github.io/react-native-testing-library/docs/migration/v13)
106106
- [Migration to built-in Jest Matchers](https://callstack.github.io/react-native-testing-library/docs/migration/jest-matchers)
107107

108108
## Troubleshooting

0 commit comments

Comments
 (0)