Browse Source

jest config

pull/1/head
Tim Glasgow 2 years ago
parent
commit
8ff127d819
  1. 17
      squarenotsquare/jest.config.js

17
squarenotsquare/jest.config.js

@ -0,0 +1,17 @@
module.exports = {
// setupFiles: ['./jestSetup.js'],
preset: 'react-native',
verbose: true,
setupFiles: ["./node_modules/react-native-gesture-handler/jestSetup.js"],
moduleDirectories: ['node_modules'],
moduleNameMapper: {
// '@react-native-firebase/messaging: '<rootDir>/__mock__/mockFirebase.js',
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mock__/file.js"
},
/*
transform: {
'^.+\\(ts|tsx)?$': 'ts-jest',
'^.+\\(js|jsx)?$': 'babel-jest',
}
*/
}
Loading…
Cancel
Save