Skip to content

Instantly share code, notes, and snippets.

@bharat-tiwari
Created November 18, 2019 18:09
Show Gist options
  • Save bharat-tiwari/8e88fc20398e262e5525deffddf9e0e5 to your computer and use it in GitHub Desktop.
Save bharat-tiwari/8e88fc20398e262e5525deffddf9e0e5 to your computer and use it in GitHub Desktop.
jest config for RN Typescript tests
module.exports = {
preset: 'react-native',
testRegex: '(/__tests__/.*|/src/.*\\.(test|spec))\\.(jsx?|tsx?)$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx',
'json',
'ios.ts',
'ios.tsx',
'android.ts',
'android.tsx',
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment