Files
callstack__react-native-tes…/package.json
T
Michał Pierzchała d6d225d825 fix: getAllBy* methods return more elements than expected (#57)
<!-- Please provide enough information so that others can review your pull request. -->
<!-- Keep pull requests small and focused on a single change. -->

### Summary

While upgrading the RN dev dep to 0.57.5 our test suite caught a bug, where `getAllBy*` methods would return more elements than expected. This is fixed by making sure we check the proper type of the parameter when we compare it directly to `node.type` (should be a function, but we allowed strings)

### Test plan

Updated snapshot (yay! RN fixed the display names of View and Text)
2018-11-13 19:26:47 +01:00

54 lines
1.5 KiB
JSON

{
"name": "react-native-testing-library",
"version": "1.3.0",
"description": "Simple React Native testing utilities helping you write better tests with less effort",
"main": "src/index.js",
"typings": "./typings/index.d.ts",
"repository": "git@github.com:callstack/react-native-testing-library.git",
"author": "Michał Pierzchała <thymikee@gmail.com>",
"license": "MIT",
"private": false,
"devDependencies": {
"@babel/core": "^7.1.2",
"@babel/runtime": "^7.1.2",
"@callstack/eslint-config": "^3.0.0",
"@types/react": "^16.4.15",
"@types/react-test-renderer": "^16.0.3",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^23.6.0",
"chalk": "^2.4.1",
"conventional-changelog-cli": "^2.0.5",
"dedent": "^0.7.0",
"eslint": "^5.6.1",
"flow-bin": "^0.84.0",
"jest": "^23.6.0",
"metro-react-native-babel-preset": "^0.49.0",
"react": "16.6.1",
"react-native": "^0.57.5",
"react-test-renderer": "16.6.1",
"release-it": "^7.6.2",
"strip-ansi": "^5.0.0",
"typescript": "^3.1.1"
},
"dependencies": {
"pretty-format": "^23.6.0"
},
"peerDependencies": {
"react": ">=16.0.0",
"react-test-renderer": ">= 16.0.0"
},
"scripts": {
"test": "jest",
"flow-check": "flow check",
"typescript-check": "tsc --noEmit --skipLibCheck --jsx react ./typings/__tests__/*",
"lint": "eslint src --cache",
"release": "release-it"
},
"jest": {
"preset": "react-native"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}