mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Switch to react-shallow-renderer
Summary: Replace react-test-renderer/shallow with react-shallow-renderer. We should follow up with teams to remove these tests because they will no longer be supported. I would have just removed them but test like `BillingReauthorizeCreditCardContainer-test` seem important. Changelog: [Internal] Reviewed By: cpojer Differential Revision: D22225642 fbshipit-source-id: a6bd559311422cb14576a574165ed7dc0279919d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ac87e90fa5
commit
8e6e83be0c
@@ -15,7 +15,7 @@
|
||||
const React = require('react');
|
||||
|
||||
const ReactTestRenderer = require('react-test-renderer');
|
||||
const ShallowRenderer = require('react-test-renderer/shallow');
|
||||
const ShallowRenderer = require('react-shallow-renderer');
|
||||
/* $FlowFixMe(>=0.125.1 site=react_native_fb) This comment suppresses an error
|
||||
* found when Flow v0.125.1 was deployed. To see the error, delete this comment
|
||||
* and run Flow. */
|
||||
|
||||
+2
-1
@@ -12,7 +12,8 @@
|
||||
'use strict';
|
||||
|
||||
const React = require('react');
|
||||
const ShallowRenderer = require('react-test-renderer/shallow');
|
||||
|
||||
const ShallowRenderer = require('react-shallow-renderer');
|
||||
const TestRenderer = require('react-test-renderer');
|
||||
|
||||
/* $FlowFixMe(>=0.125.1 site=react_native_fb) This comment suppresses an error
|
||||
|
||||
@@ -146,6 +146,7 @@
|
||||
"prettier": "1.19.1",
|
||||
"react": "16.13.1",
|
||||
"react-test-renderer": "16.13.1",
|
||||
"react-shallow-renderer": "16.13.1",
|
||||
"shelljs": "^0.7.8",
|
||||
"signedsource": "^1.0.0",
|
||||
"ws": "^6.1.4",
|
||||
|
||||
@@ -6221,6 +6221,14 @@ react-refresh@^0.4.0:
|
||||
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.4.0.tgz#d421f9bd65e0e4b9822a399f14ac56bda9c92292"
|
||||
integrity sha512-bacjSio8GOtzNZKZZM6EWqbhlbb6pr28JWJWFTLwEBKvPIBRo6/Ob68D2EWZA2VyTdQxAh+TRnCYOPNKsQiXTA==
|
||||
|
||||
react-shallow-renderer@16.13.1:
|
||||
version "16.13.1"
|
||||
resolved "https://registry.yarnpkg.com/react-shallow-renderer/-/react-shallow-renderer-16.13.1.tgz#4cfd6dc0f05a8d4d261ff7a80e9b88f15491a00a"
|
||||
integrity sha512-hLmExm5/ZnjodLgm/4oxYw4i7fL6LLPhbO9mF/4tmaZUurtLrp2aSeDHZmRk0SVCHXPz0VaEbb3Dqi5J7odz7Q==
|
||||
dependencies:
|
||||
object-assign "^4.1.1"
|
||||
react-is "^16.12.0"
|
||||
|
||||
react-test-renderer@16.13.1:
|
||||
version "16.13.1"
|
||||
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.13.1.tgz#de25ea358d9012606de51e012d9742e7f0deabc1"
|
||||
|
||||
Reference in New Issue
Block a user