forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Jest preset so that people can configure Jest using react-nati…
…ve as preset Reviewed By: cpojer Differential Revision: D4081817 fbshipit-source-id: 43cf2ec467ea69651705162b6a58e0b3f1ad1dbf
- Loading branch information
Cristian Carlesso
authored and
Facebook Github Bot
committed
Oct 31, 2016
1 parent
bb84c37
commit 6d3e074
Showing
5 changed files
with
73 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"haste": { | ||
"defaultPlatform": "ios", | ||
"platforms": ["android", "ios"], | ||
"providesModuleNodeModules": [ | ||
"react", | ||
"react-native" | ||
] | ||
}, | ||
"moduleNameMapper": { | ||
"^image![a-zA-Z0-9$_-]+$": "GlobalImageStub", | ||
"^[./a-zA-Z0-9$_-]+\\.(bmp|gif|jpg|jpeg|png|psd|svg|webp)$": "RelativeImageStub" | ||
}, | ||
"modulePathIgnorePatterns": [ | ||
"<rootDir>/node_modules/react-native/Libraries/react-native/", | ||
"<rootDir>/node_modules/react-native/packager/" | ||
], | ||
"preprocessorIgnorePatterns": [ | ||
"node_modules/(?!(jest-)?react-native|react-clone-referenced-element)" | ||
], | ||
"setupFiles": [ | ||
"<rootDir>/node_modules/react-native/jest/setup.js" | ||
], | ||
"testEnvironment": "node" | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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