Skip to content

Commit

Permalink
added jest to globals
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielZlotin committed Oct 31, 2016
1 parent cc68e68 commit c3cf4f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module.exports = {
globals: {
document: false,
fetch: true,
__DEV__: true
__DEV__: true,
jest: true
}
};
1 change: 1 addition & 0 deletions test/scripts/react-native/globals.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
function globals() {
if (__DEV__) {
fetch('http://example.com');
jest.disableAutomock();
}
}

Expand Down

0 comments on commit c3cf4f3

Please sign in to comment.