-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix jest config and test cases (#1437)
* fix jest config and test cases * fix test workflow --------- Co-authored-by: nitesh <nitesh@niteshs-MacBook-Pro.local>
- Loading branch information
1 parent
ce4c548
commit 4f454d8
Showing
9 changed files
with
527 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
module.exports = { | ||
preset: 'react-native', | ||
moduleFileExtensions: ['android.ts', 'android.tsx', 'ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
preset: "react-native", | ||
moduleFileExtensions: ["android.ts", "android.tsx", "ts", "tsx", "js", "jsx", "json", "node"], | ||
transformIgnorePatterns: [ | ||
"node_modules/(?!react-native|@shoutem|react-clone-referenced-element|native-base|native-base-shoutem-theme|react-native-camera|@react-navigation|react-navigation-tabs|react-navigation|@react-native-community\/async-storage|@react-native-community/slider|@codler\/react-native-keyboard-aware-scroll-view|@react-native-community\/picker|@react-native)", | ||
], | ||
testPathIgnorePatterns: [ | ||
"tests/utils.ts", | ||
"node_modules/(?!react-native|@shoutem|react-clone-referenced-element|native-base|native-base-shoutem-theme|react-native-camera|@react-navigation|react-navigation-tabs|react-navigation|@react-native-community/async-storage|@react-native-community/slider|@codler/react-native-keyboard-aware-scroll-view|@react-native-community/picker|@react-native)", | ||
], | ||
testPathIgnorePatterns: ["tests/utils.ts"], | ||
setupFiles: [ | ||
// "react-native/jest/setup.js", | ||
"./jestSetup.js", | ||
"jest-date-mock", | ||
"./node_modules/react-native-gesture-handler/jestSetup.js" | ||
"./node_modules/react-native-gesture-handler/jestSetup.js", | ||
], | ||
moduleNameMapper: { | ||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/assetsTransformer.js", | ||
"\\.(css|less)$": "<rootDir>/assetsTransformer.js" | ||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": | ||
"<rootDir>/assetsTransformer.js", | ||
"\\.(css|less)$": "<rootDir>/assetsTransformer.js", | ||
"^react-native-reanimated$": "<rootDir>/node_modules/react-native-reanimated/src/Animated.ts", | ||
}, | ||
testMatch: ['**/tests/**/*.[jt]s?(x)'], | ||
} | ||
testMatch: ["**/tests/**/*.[jt]s?(x)"], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.