jest-preset-ignite
Version:
Jest preset for handling TypeScript on a React Native project.
46 lines • 1.24 kB
JSON
{
"haste": {
"defaultPlatform": "ios",
"platforms": [
"android",
"ios",
"native"
],
"providesModuleNodeModules": [
"react-native"
],
"hasteImplModulePath": "<rootDir>/node_modules/react-native/jest/hasteImpl.js"
},
"moduleNameMapper": {
"^[./a-zA-Z0-9$_-]+\\.(bmp|gif|jpg|jpeg|png|psd|svg|webp|ttf|otf)$": "RelativeImageStub",
"^React$": "<rootDir>/node_modules/react"
},
"modulePathIgnorePatterns": [
"<rootDir>/node_modules/react-native/Libraries/react-native/"
],
"transformIgnorePatterns": [
"node_modules/(?!(jest-)?react-native|react-clone-referenced-element|react-native|react-navigation)"
],
"setupFiles": [
"<rootDir>/node_modules/react-native/jest/setup.js",
"<rootDir>/test/setup.ts"
],
"testEnvironment": "node",
"moduleFileExtensions": [
"js",
"jsx",
"ts",
"tsx",
"json"
],
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js",
"^.+\\.(ts|tsx)$": "<rootDir>/node_modules/jest-preset-ignite/preprocessor.js"
},
"testMatch": [
"**/__tests__/**/*.js?(x)",
"**/?(*.)(spec|test).js?(x)",
"**/__tests__/**/*.ts?(x)",
"**/?(*.)(spec|test).ts?(x)"
]
}