Skip to content

Instantly share code, notes, and snippets.

@ryoldash
Created January 13, 2019 21:06
Show Gist options
  • Save ryoldash/6e5dc852316d4bd8ba4670927726c7da to your computer and use it in GitHub Desktop.
Save ryoldash/6e5dc852316d4bd8ba4670927726c7da to your computer and use it in GitHub Desktop.
How to use Mobx, Typescript, Native Base, mocking REST APIs with JSON Server and Faker.JS in React Native
"jest": {
"preset": "react-native",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"^.+\\.(js)$": "<rootDir>/node_modules/babel-jest",
"\\.(ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"testPathIgnorePatterns": [
"\\.snap$",
"<rootDir>/node_modules/"
],
"cacheDirectory": ".jest/cache"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment