Skip to content

Commit bed90cd

Browse files
committed
fix: more references to package name
1 parent ba8a8ce commit bed90cd

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ labels: 'bug report'
3434
<!--
3535
run following command in terminal of your root project and paste the result down
3636
37-
`npx envinfo --npmPackages react,react-native,react-test-renderer,react-native-testing-library`
38-
-->
37+
`npx envinfo --npmPackages react,react-native,react-test-renderer,@testing-library/react-native`
38+
-->

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ You can report issues on our [bug tracker](https://github.com/callstack/react-na
6363

6464
## License
6565

66-
By contributing to `react-native-testing-library`, you agree that your contributions will be licensed under its **MIT** license.
66+
By contributing to `@testing-library/react-native`, you agree that your contributions will be licensed under its **MIT** license.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ Open a Terminal in your project's folder and run:
6767
#### Using `yarn`
6868

6969
```sh
70-
yarn add --dev react-native-testing-library
70+
yarn add --dev @testing-library/react-native
7171
```
7272

7373
#### Using `npm`
7474

7575
```sh
76-
npm install --save-dev react-native-testing-library
76+
npm install --save-dev @testing-library/react-native
7777
```
7878

7979
This library has a peerDependencies listing for `react-test-renderer` and, of course, `react`. Make sure to install them too!
@@ -115,7 +115,7 @@ As you may have noticed, it's not tied to React Native at all – you can safely
115115

116116
## API / Usage
117117

118-
The [public API](https://callstack.github.io/react-native-testing-library/docs/api) of `react-native-testing-library` is focused around these essential methods:
118+
The [public API](https://callstack.github.io/react-native-testing-library/docs/api) of `@testing-library/react-native` is focused around these essential methods:
119119

120120
- [`render`](https://callstack.github.io/react-native-testing-library/docs/api#render) – deeply renders given React element and returns helpers to query the output components.
121121
- [`fireEvent`](https://callstack.github.io/react-native-testing-library/docs/api#fireevent) - invokes named event handler on the element.

src/helpers/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function printDeprecationWarning(functionName: string) {
3333

3434
console.warn(`
3535
Deprecation Warning:
36-
Use of ${functionName} is not recommended and will be deleted in future versions of react-native-testing-library.
36+
Use of ${functionName} is not recommended and will be deleted in future versions of @testing-library/react-native.
3737
`);
3838

3939
warned[functionName] = true;

website/docs/API.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: api
33
title: API
44
---
55

6-
This page gathers public API of `react-native-testing-library` along with usage examples.
6+
This page gathers public API of `@testing-library/react-native` along with usage examples.
77

88
## `render`
99

@@ -134,7 +134,7 @@ Please note that this is done automatically if the testing framework you're usin
134134
For example, if you're using the `jest` testing framework, then you would need to use the `afterEach` hook like so:
135135

136136
```jsx
137-
import { cleanup, render } from 'react-native-testing-library/pure';
137+
import { cleanup, render } from '@testing-library/react-native/pure';
138138
import { View } from 'react-native';
139139

140140
afterEach(cleanup);

website/docs/GettingStarted.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You finally want to approach testing using only best practices, while Enzyme may
1313

1414
## This solution
1515

16-
The `react-native-testing-library` is a lightweight solution for testing your React Native components. It provides light utility functions on top of `react-test-renderer` letting you always be up to date with latest React features and write any component tests you like. It also prevents you from testing implementation details because we believe this is a very bad practice.
16+
The `@testing-library/react-native` is a lightweight solution for testing your React Native components. It provides light utility functions on top of `react-test-renderer` letting you always be up to date with latest React features and write any component tests you like. It also prevents you from testing implementation details because we believe this is a very bad practice.
1717

1818
This library is a replacement for [Enzyme](http://airbnb.io/enzyme/).
1919

@@ -53,13 +53,13 @@ Open a Terminal in your project's folder and run:
5353
#### Using `yarn`
5454

5555
```sh
56-
yarn add --dev react-native-testing-library
56+
yarn add --dev @testing-library/react-native
5757
```
5858

5959
#### Using `npm`
6060

6161
```sh
62-
npm install --save-dev react-native-testing-library
62+
npm install --save-dev @testing-library/react-native
6363
```
6464

6565
This library has a peerDependencies listing for `react-test-renderer` and, of course, `react`. Make sure to install them too!

website/docs/Queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const element = getByA11yValue({ min: 40 });
203203

204204
> Use sparingly and responsibly, escape hatches here
205205
206-
`render` from `react-native-testing-library` exposes additional queries that **should not be used in component integration testing**, but some users (like component library creators) interested in unit testing some components may find helpful.
206+
`render` from `@testing-library/react-native` exposes additional queries that **should not be used in component integration testing**, but some users (like component library creators) interested in unit testing some components may find helpful.
207207

208208
<details>
209209
<summary>Queries helpful in unit testing</summary>

website/docs/ReactNavigation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: react-navigation
33
title: React Navigation
44
---
55

6-
This section deals with integrating `react-native-testing-library` with `react-navigation`, using Jest.
6+
This section deals with integrating `@testing-library/react-native` with `react-navigation`, using Jest.
77

88
## Setting up
99

@@ -127,7 +127,7 @@ const styles = StyleSheet.create({
127127
Install required dev dependencies:
128128

129129
```
130-
$ yarn add -D jest react-native-testing-library
130+
$ yarn add -D jest @testing-library/react-native
131131
```
132132

133133
Create your `jest.config.js` file (or place the following properties in your `package.json` as a "jest" property)

0 commit comments

Comments
 (0)