mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 22:37:14 +08:00
Fix more tests
Summary: beeper node modules has a `return` statement outside of a function which doesn't parse. To fix it, we mock it. Also, setupEnvPolyfills is no longer being used. Closes https://github.com/facebook/react-native/pull/2770 Reviewed By: @svcscm Differential Revision: D2448882 Pulled By: @vjeux
This commit is contained in:
committed by
facebook-github-bot-6
parent
b4b42f1ff5
commit
36a8358ae7
5
local-cli/__mocks__/beeper.js
Normal file
5
local-cli/__mocks__/beeper.js
Normal file
@@ -0,0 +1,5 @@
|
||||
// beeper@1.1.0 has a return statement outside of a function
|
||||
// and therefore doesn't parse. Let's mock it so that we can
|
||||
// run the tests.
|
||||
|
||||
module.exports = function () {};
|
||||
Reference in New Issue
Block a user