From 8ff127d819a88a9b680c4921ed707406ed95b734 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Wed, 27 Jul 2022 23:00:29 -0500 Subject: [PATCH] jest config --- squarenotsquare/jest.config.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 squarenotsquare/jest.config.js diff --git a/squarenotsquare/jest.config.js b/squarenotsquare/jest.config.js new file mode 100644 index 0000000..4f67572 --- /dev/null +++ b/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: '/__mock__/mockFirebase.js', + "\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "/__mock__/file.js" + }, + /* + transform: { + '^.+\\(ts|tsx)?$': 'ts-jest', + '^.+\\(js|jsx)?$': 'babel-jest', + } + */ +} \ No newline at end of file