mirror of
https://github.com/status-im/react-native.git
synced 2025-01-12 18:44:25 +00:00
Fix tests related to event-target-shim
Summary: @public Jest has an issue where if you export `Symbol` it crashes badly. Since event-target-shim does that, it breaks everything. Mocking that module fixes the issue until @cpojer comes back from vacation and fixes the bug in Jest itself. Reviewed By: @jingc Differential Revision: D2503562
This commit is contained in:
parent
b8c42f7f6f
commit
6f84ccf51a
9
Libraries/WebSocket/__mocks__/event-target-shim.js
Normal file
9
Libraries/WebSocket/__mocks__/event-target-shim.js
Normal file
@ -0,0 +1,9 @@
|
||||
// Jest fatals for the following statement (minimal repro case)
|
||||
//
|
||||
// exports.something = Symbol;
|
||||
//
|
||||
// Until it is fixed, mocking the entire node module makes the
|
||||
// problem go away.
|
||||
|
||||
'use strict';
|
||||
module.exports = function() {};
|
Loading…
x
Reference in New Issue
Block a user