Skip to content

Commit

Permalink
test: move from react-native-testing-library => @testing-library/reac…
Browse files Browse the repository at this point in the history
…t-native
  • Loading branch information
ferdicus committed Jul 9, 2021
1 parent bf848ce commit f57ff52
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 16 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Please add unreleased changes in the following style:
PR Title ([#123](link to my pr))
```

Fix TypeScript type for Callout's textStyle prop ([#1450](https://github.com/react-native-mapbox-gl/maps/pull/1450))
Fix TypeScript type for Callout's textStyle prop ([#1450](https://github.com/react-native-mapbox-gl/maps/pull/1450))
Move from react-native-testing-library => @testing-library/react-native ([#1453](https://github.com/react-native-mapbox-gl/maps/pull/1453))

---

Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/BackgroundLayer.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {render} from 'react-native-testing-library';
import {render} from '@testing-library/react-native';

import BackgroundLayer from '../../javascript/components/BackgroundLayer';

Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/Callout.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {render} from 'react-native-testing-library';
import {render} from '@testing-library/react-native';
import {Text, View} from 'react-native';

import Callout from '../../javascript/components/Callout';
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/Camera.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {render} from 'react-native-testing-library';
import {render} from '@testing-library/react-native';

import Camera from '../../javascript/components/Camera';

Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/CircleLayer.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {render} from 'react-native-testing-library';
import {render} from '@testing-library/react-native';

import CircleLayer from '../../javascript/components/CircleLayer';

Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/HeatmapLayer.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {render} from 'react-native-testing-library';
import {render} from '@testing-library/react-native';

import HeatmapLayer from '../../javascript/components/HeatmapLayer';

Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/MapView.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import {render} from 'react-native-testing-library';
import {render} from '@testing-library/react-native';

import MapView from '../../javascript/components/MapView';

Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/Style.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {render} from 'react-native-testing-library';
import {render} from '@testing-library/react-native';

import VectorSource from '../../javascript/components/VectorSource';
import RasterSource from '../../javascript/components/RasterSource';
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/SymbolLayer.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {render} from 'react-native-testing-library';
import {render} from '@testing-library/react-native';
import PropTypes from 'prop-types';

import SymbolLayer, {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/UserLocation.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {render, fireEvent} from 'react-native-testing-library';
import {render, fireEvent} from '@testing-library/react-native';

import UserLocation, {
normalIcon,
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
"@mapbox/geo-viewport": ">= 0.4.0",
"@turf/along": ">= 4.0.0 <7.0.0",
"@turf/distance": ">= 4.0.0 <7.0.0",
"@turf/nearest-point-on-line": ">= 4.0.0 <7.0.0",
"@turf/helpers": ">= 4.6.0 <7.0.0",
"@turf/length": ">= 4.6.0 <7.0.0",
"@turf/nearest-point-on-line": ">= 4.0.0 <7.0.0",
"@types/geojson": "^7946.0.7",
"debounce": "^1.2.0"
},
Expand All @@ -54,30 +54,30 @@
"@babel/plugin-transform-exponentiation-operator": "7.10.4",
"@babel/plugin-transform-runtime": "7.14.5",
"@babel/runtime": "7.11.2",
"@react-native-community/eslint-config": "^2.0.0",
"@sinonjs/fake-timers": "^7.0.1",
"@testing-library/react-native": "^7.2.0",
"babel-core": "6.26.3",
"babel-eslint": "^10.0.1",
"documentation": "13.2.5",
"ejs": "^3.1.3",
"ejs-lint": "^1.1.0",
"eslint": "^7.3.0",
"@react-native-community/eslint-config": "^2.0.0",
"eslint-plugin-fp": "^2.3.0",
"eslint-plugin-import": "2.23.4",
"expo-module-scripts": "^2.0.0",
"husky": "4.3.8",
"jest": "25.5.4",
"@sinonjs/fake-timers": "^7.0.1",
"jest-cli": "25.5.4",
"lint-staged": "^11.0.0",
"metro-react-native-babel-preset": "0.49.1",
"node-dir": "0.1.17",
"prettier": "^2.0.4",
"react": "16.8.3",
"react-docgen": "^5.0.0-beta.1",
"react-native": "0.59.10",
"typescript": "4.3.2",
"react-native-testing-library": "^6.0.0",
"react-test-renderer": "16.8.3",
"prettier": "^2.0.4"
"typescript": "4.3.2"
},
"jest": {
"preset": "react-native",
Expand Down

0 comments on commit f57ff52

Please sign in to comment.