Created
June 27, 2016 12:57
-
-
Save skellock/c4f0513604bdef71637176cd50cfc5f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mockery from ‘mockery’ | |
// inject __DEV__ | |
global.__DEV__ = true | |
// We enable mockery and leave it on. | |
mockery.enable() | |
// Silence mockery's warnings as we'll opt-in to mocks instead | |
mockery.warnOnUnregistered(false) | |
// Let’s register some mocks for the images that | |
// are brought into our project. You’ll have to do | |
// the same because the React Native packager and babel | |
// are locked into a horrible custody battle. | |
mockery.registerMock(‘../Images/ir.png’, 0) | |
mockery.registerMock(‘../Images/top_logo.png’, 0) | |
mockery.registerMock(‘../Images/ignite_logo.png’, 0) | |
mockery.registerMock(‘../Images/tile_bg.png’, 0) | |
mockery.registerMock(‘../Images/BG.png’, 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment