Skip to content

Commit a559dbf

Browse files
committed
chore(breaking): rename to @testing-library/react-native (#463)
1 parent d6c590f commit a559dbf

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ Supported and used by [Rally Health](https://www.rallyhealth.com/careers-home).
142142

143143
<!-- badges -->
144144

145-
[version-badge]: https://img.shields.io/npm/v/react-native-testing-library.svg?style=flat-square
146-
[package]: https://www.npmjs.com/package/react-native-testing-library
145+
[version-badge]: https://img.shields.io/npm/v/@testing-library/react-native.svg?style=flat-square
146+
[package]: https://www.npmjs.com/package/@testing-library/react-native
147147
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
148148
[prs-welcome]: http://makeapullrequest.com
149149
[chat-badge]: https://img.shields.io/discord/426714625279524876.svg?style=flat-square&colorB=758ED3

examples/reactnavigation/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-navigation-example",
3-
"description": "Testing react-navigation with react-native-testing-library",
3+
"description": "Testing React Navigation with RNTL",
44
"version": "0.0.1",
55
"private": true,
66
"scripts": {
@@ -24,7 +24,7 @@
2424
"babel-jest": "^25.4.0",
2525
"jest": "^25.4.0",
2626
"metro-react-native-babel-preset": "^0.59.0",
27-
"react-native-testing-library": "^1.13.0",
27+
"@testing-library/react-native": "^7.0.0-rc.0",
2828
"react-test-renderer": "^16.13.1"
2929
}
3030
}

examples/reactnavigation/src/__tests__/AppNavigator.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { NavigationContainer } from '@react-navigation/native';
3-
import { render, fireEvent } from 'react-native-testing-library';
3+
import { render, fireEvent } from '@testing-library/react-native';
44

55
import AppNavigator from '../AppNavigator';
66

examples/redux/components/AddTodo.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { Provider } from 'react-redux';
3-
import { fireEvent, render } from 'react-native-testing-library';
3+
import { fireEvent, render } from '@testing-library/react-native';
44
import configureStore from '../store';
55
import AddTodo from './AddTodo';
66

examples/redux/components/TodoList.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { Provider } from 'react-redux';
3-
import { fireEvent, render } from 'react-native-testing-library';
3+
import { fireEvent, render } from '@testing-library/react-native';
44
import configureStore from '../store';
55
import TodoList from './TodoList';
66

examples/redux/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"babel-jest": "~25.2.6",
1717
"jest": "~25.2.6",
1818
"metro-react-native-babel-preset": "^0.59.0",
19-
"react-native-testing-library": "^1.13.2",
19+
"@testing-library/react-native": "^7.0.0-rc.0",
2020
"react-test-renderer": "~16.9.0"
2121
},
2222
"private": true,

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "react-native-testing-library",
3-
"version": "2.2.0",
4-
"description": "Simple React Native testing utilities helping you write better tests with less effort",
2+
"name": "@testing-library/react-native",
3+
"version": "7.0.0-rc.0",
4+
"description": "Simple and complete React Native testing utilities that encourage good testing practices.",
55
"main": "build/index.js",
66
"typings": "./typings/index.d.ts",
77
"repository": {

website/docusaurus.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const siteConfig = {
77
url: 'https://callstack.github.io', // Your website URL
88
baseUrl: '/react-native-testing-library/', // Base URL for your project
99
// Used for publishing and more
10-
projectName: 'react-native-testing-library',
10+
projectName: '@testing-library/react-native',
1111
organizationName: 'callstack',
1212
favicon: 'img/owl.png',
1313

0 commit comments

Comments
 (0)