Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Commit fb9f318

Browse files
author
Brandon Carroll
committed
feat(release): release a major version to move to new npm org
BREAKING CHANGE: You must switch from native-testing-library to @testing-library/react-native
1 parent 2d44d62 commit fb9f318

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<div align="center">
2-
<h1>(React) Native Testing Library</h1>
2+
<h1>Native Testing Library</h1>
33

44
<a href="https://www.joypixels.com/emoji/1f433">
55
<img
66
height="80"
77
width="80"
8-
alt="goat"
8+
alt="whale"
99
src="https://github.com/raw/testing-library/native-testing-library/master/other/whale.png"
1010
/>
1111
</a>
@@ -20,9 +20,9 @@
2020

2121
[![Build Status](https://travis-ci.org/testing-library/native-testing-library.svg?branch=master)](https://travis-ci.org/testing-library/native-testing-library)
2222
[![Code Coverage](https://img.shields.io/codecov/c/github/testing-library/native-testing-library.svg?style=flat-square)](https://codecov.io/github/testing-library/native-testing-library)
23-
[![version](https://img.shields.io/npm/v/native-testing-library.svg?style=flat-square)](https://www.npmjs.com/package/native-testing-library)
24-
[![downloads](https://img.shields.io/npm/dm/native-testing-library.svg?style=flat-square)](http://www.npmtrends.com/native-testing-library)
25-
[![MIT License](https://img.shields.io/npm/l/native-testing-library.svg?style=flat-square)](https://github.com/testing-library/native-testing-library/blob/master/LICENSE)
23+
[![version](https://img.shields.io/npm/v/@testing-library/react-native.svg?style=flat-square)](https://www.npmjs.com/package/@testing-library/react-native)
24+
[![downloads](https://img.shields.io/npm/dm/@testing-library/react-native.svg?style=flat-square)](http://www.npmtrends.com/@testing-library/react-native)
25+
[![MIT License](https://img.shields.io/npm/l/@testing-library/react-native.svg?style=flat-square)](https://github.com/testing-library/native-testing-library/blob/master/LICENSE)
2626

2727
[![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=flat-square)](#contributors)
2828
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
@@ -67,7 +67,7 @@ still accounting for the differences in the platforms.
6767
```javascript
6868
import React from 'react';
6969
import { Button, Text, TextInput, View } from 'react-native';
70-
import { act, fireEvent, render, wait } from 'native-testing-library';
70+
import { act, fireEvent, render, wait } from '@testing-library/react-native';
7171

7272
function Example() {
7373
const [name, setUser] = React.useState('');
@@ -113,7 +113,7 @@ test('examples of some things', async () => {
113113
This module should be installed in your project's `devDependencies`:
114114

115115
```
116-
npm install --save-dev native-testing-library
116+
npm install --save-dev @testing-library/react-native
117117
```
118118

119119
You will need `react` and `react-native` installed as _dependencies_ in order to run this project.

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "native-testing-library",
2+
"name": "@testing-library/react-native",
33
"version": "0.0.0-semantically-released",
44
"description": "Simple and complete React Native testing utilities that encourage good testing practices.",
55
"main": "dist/index.js",
@@ -38,9 +38,7 @@
3838
"author": "Brandon Carroll <[email protected]> (https://github.com/bcarroll22)",
3939
"license": "MIT",
4040
"dependencies": {
41-
"jest-native": "2.0.0-alpha.5",
4241
"pretty-format": "^24.5.0",
43-
"react-test-renderer": "^16.8.5",
4442
"wait-for-expect": "^1.1.1"
4543
},
4644
"devDependencies": {
@@ -54,24 +52,27 @@
5452
"jest": "24.5.0",
5553
"jest-fetch-mock": "^2.1.1",
5654
"jest-in-case": "^1.0.2",
55+
"jest-native": "2.0.0",
5756
"metro-react-native-babel-preset": "^0.52.0",
5857
"prettier": "^1.16.4",
5958
"pretty-quick": "^1.10.0",
60-
"react": "16.8.3",
59+
"react": "16.8.6",
6160
"react-hooks-testing-library": "^0.5.0",
6261
"react-intl": "^2.8.0",
6362
"react-intl-native": "^2.1.2",
64-
"react-native": "^0.59.5",
63+
"react-native": "0.59.6",
6564
"react-native-gesture-handler": "^1.1.0",
6665
"react-navigation": "^3.5.1",
6766
"react-redux": "^7.0.3",
67+
"react-test-renderer": "16.8.6",
6868
"redux": "^4.0.1",
6969
"semantic-release": "^15.13.3",
7070
"snapshot-diff": "0.5.1"
7171
},
7272
"peerDependencies": {
7373
"react": "*",
74-
"react-native": "*"
74+
"react-native": "*",
75+
"react-test-renderer": "*"
7576
},
7677
"husky": {
7778
"hooks": {

0 commit comments

Comments
 (0)